You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unrecognised properties of RouteOptions are used only in RouteOptions.toUrl(). Unrecognised properties are ignored if you do request via MapboxDirections:
val client =MapboxDirections.builder().accessToken(getMapboxAccessTokenFromResources()).routeOptions(routeOptions).build()
client.enqueueCall(object:Callback<DirectionsResponse> {
overridefunonResponse(
call:Call<DirectionsResponse>,
response:Response<DirectionsResponse>
) {
Log.d(TAG, "onResponse: what")
if (response.isSuccessful) {
Log.d(TAG, "onResponse: hello")
val body = response.body()!!
mapboxNavigation.setRoutes(body.routes())
Log.d(TAG, "onResponse: ${body.routes()}")
}
}
overridefunonFailure(call:Call<DirectionsResponse>, t:Throwable) {}
})
Add support of unrecognised properties from RouteOptions to MapboxDirections
The text was updated successfully, but these errors were encountered:
Unrecognised properties of
RouteOptions
are used only inRouteOptions.toUrl()
. Unrecognised properties are ignored if you do request viaMapboxDirections
:Add support of unrecognised properties from
RouteOptions
toMapboxDirections
The text was updated successfully, but these errors were encountered: