Skip to main content
Solved

Return CO2 saved on /activities/{id} call


Forum|alt.badge.img+4

I have a personal project where I am creating activities based on rides taken on a bikeshare program. I want to be able to calculate the CO2 saved by taking this form of transportation, as I see this data in the Strava platform but it isn't returned on the /activities/id API call. It would be amazing if this could be added.

Best answer by Jan_Mantau

You can calculate it yourself, it's simply 0.00021743 kg CO2 per distance in meters.

View original
Did this topic help you find an answer to your question?

2 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 920 replies
  • Answer
  • October 2, 2023

You can calculate it yourself, it's simply 0.00021743 kg CO2 per distance in meters.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 1 reply
  • October 2, 2023

Got it, thanks! Good to know. I thought it was a constant, but had hoped it might have been a bit more of a complex solution. Appreciated.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings