-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
Currently, if we're trying to reuse RouteOptions object for creating route requests we constantly need to switch Object impl -> String representation -> Object impl and repeat the other way around.
An example can be the Directions request's bearings field:
- The user needs to pass
bearingsin aStringformat in the Nav SDK to make a request. - We're parsing this
Stringinto objects inside of the SDK to matchMapboxDirections'addBearing(Double angle, Double tolerance). MapboxDirectionsparses it back toStringto make a request.
We should cut that middle conversion. We can possibly do it by moving all of the utility methods based on objects to RouteOptions.
/cc @mapbox/navigation-android
Metadata
Metadata
Assignees
Labels
No labels