I've been exploring the Mapbox Map SDK and the Navigation SDK and have hit a brick wall so any help would be appreciated.
I have a few routes defined in GeoJSON. Is it possible to feed this custom route in GeoJSON into the Navigation SDK and get turn-by-turn directions?
Perhaps with the help of this plugin:
https://www.mapbox.com/android-docs/plugins/overview/geojson/#using-the-geojson-plugin
I realise there also is a Map Matching API:
https://www.mapbox.com/help/define-map-matching/
Which seem like a perfect way to snap all the geocoordinates to the road so that there is no bleed.
Now the undocumented part or the part that I am having trouble with is with a route properly defined in GeoJSON, can Mapbox provide turn-by-turn navigation directions?
Any help would be greatly appreciated.
The Navigation SDK will take in any DirectionsRoute and try navigating along it, that is if all the necessary information is found in the object. For your case, you might want to try as you mentioned, Map Matching beforehand and using the MapMatchingMatching object which extends the DirectionsRoute to begin a nav session. Note that I haven't tried this yet. Make sure your Map Matching request has
steps
set to true.