Skip to content

RouteOptions parsing improvements #1117

@LukasPaczos

Description

@LukasPaczos

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 bearings in a String format in the Nav SDK to make a request.
  • We're parsing this String into objects inside of the SDK to match MapboxDirections' addBearing(Double angle, Double tolerance).
  • MapboxDirections parses it back to String to 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions