The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
03-28-2024 04:09 AM - edited 03-28-2024 04:11 AM
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
08-13-2024 08:19 AM
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
08-13-2024 07:59 AM
imAtulSharma, thanks for the post. I think your best option is to google "polyline decoder"
Hope that helps.
Welcome to the Community - here is your guide to help you get started!