Search code examples
fluttermapboxmapbox-glmapbox-androidmapbox-ios

Mapbox - FLUTTER SDK


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 ?


Solution

  • 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