cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.

Return CO2 saved on /activities/{id} call

mikal
Mt. Kenya

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.

1 ACCEPTED SOLUTION

Jan_Mantau
Superuser
Superuser

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

View solution in original post

2 REPLIES 2

Jan_Mantau
Superuser
Superuser

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

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.