0

I have gone through the mapbox documentation and come to know that it provides offline support for both Android and IOS.

My requirement is to use direction functionality offline. Since We can download and store particular region, Can we load direction between two points?

Is mapbox provode such functionality. I have gone through the mapbox documentation and come to know about offline map features but is there any way to integrate offline direction using Mapbox ?

Jaimin Modi
  • 1,530
  • 4
  • 20
  • 72

1 Answers1

1

Direction is an ML-generated route API that is only accessible through the internet. Only 100,000 requests are free per month to use this service for free. To access the API you are required to use something like

https://api.mapbox.com/directions/v5/mapbox/driving/-122.42,37.78;-77.03,38.91?access_token=YOUR_MAPBOX_ACCESS_TOKEN

Read more about Mapbox offline, Mapbox directions

Usama Karim
  • 1,100
  • 4
  • 15
  • Please add the reference url in answer if possible. Thanks for your answer. – Jaimin Modi Jul 25 '22 at 03:06
  • Can we use direction on download or saved map being online ? – Jaimin Modi Jul 25 '22 at 05:27
  • Yes, you can use directions with saved maps. It's not directly related to Mapbox. You can use their directions service with any other map service too. – Usama Karim Jul 25 '22 at 06:36
  • How? Can you please guide? Why you replied that direction can not be offline.? – Jaimin Modi Jul 25 '22 at 15:28
  • Directions and Offline Map tiles are not directly related to each other these are both different things. In most cases you need a map to use directions but you don't need to use directions while using map only. So map is the basic feature and directions is a specific feature. As I mentioned in the answer that directions are ML generated service that takes time g worth to build. You cannot use mapbox directions offline but if you want offline feature you need to create a ML model which is trained on getting the right path from millions of latitudes & longitudes. – Usama Karim Jul 25 '22 at 17:45
  • You can also check on Google Maps application that if you are offline you can not get Directions but you can use there maps offline – Usama Karim Jul 25 '22 at 17:51
  • The documentation of Mapbox offline clearly states that you can only download map tiles for offline use – Usama Karim Jul 25 '22 at 17:54
  • Thanks, Can you please share link that mention this ? – Jaimin Modi Jul 26 '22 at 05:57
  • By the way, We just have to load the custom created style or Tile and have to draw path on it between two distance. Can you please guide about it ? – Jaimin Modi Jul 29 '22 at 12:49