maplibre / maplibre-navigation-android

Maplibre Navigation SDK for Android
MIT License
86 stars 44 forks source link

DirectionsResponse.fromJson(String json, RouteOptions routeOptions) does not exist in Maplibre? #66

Closed moiatto closed 1 year ago

moiatto commented 1 year ago

I'm using DirectionsResponse.fromJson(String json) to parse a GeoJson Directions Response, but the DirectionsRoute are not provided with RouteOptions and I can't use them for navigation.

In MapBox i have seen the DirectionsResponse.fromJson(String json, RouteOptions routeOptions) which is missing in Maplibre.

Is there an alternative way to add the RouteOptions ?

boldtrn commented 1 year ago

The method exists, but there is currently the issue that the models have been deleted in the latest version upstream, so you have to use the older dependency, see #37 - we have to fix #37 in order to fix this here in this repo.