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.

Display map for real activity

imAtulSharma
Mt. Kenya

Hi Developers,

        I am want to show static image for the path of the activity done by strava users. Through strava api I get two polylines one is for summary and other is complete. Now how can I show the path using mapbox as I have used static map api but not working. Is there anything regarding the URL encoding or decoding? If anyone has proper docs to generate a successfull URL then you should share here.

Thanks and Regards

Atul Sharma

2 REPLIES 2

ActivityFix
Superuser
Superuser

Can you give an example of the URL you're trying to use which isn't working? There isn't really much to go on with the information you've given.

Mapbox has documentation on doing exactly what you're looking for, and shows an example of a URL which uses a polyline - https://docs.mapbox.com/api/maps/static-images/#path

SkippyVasquez
Moderator Moderator
Moderator

imAtulSharma, thanks for the post. I think your best option is to google "polyline decoder"

Hope that helps.

 

Skippy
STRAVA | Developer Hub Team