void retrieveRouteFor ( OfflineRoute offlineRoute , OnOfflineRouteFoundCallback callback ) { new OfflineRouteRetrievalTask ( navigator , callback ) . execute ( offlineRoute ) ; }
Uses libvalhalla and local tile data to generate mapbox - directions - api - like json