Maneuver Options
Specifies options for parsing Maneuver data in the MapboxManeuverApi.
Parameters
guidance instructions returned by the Mapbox Directions API often have instructions on a route duplicated to control the timing of when to notify the user about details of an upcoming maneuver. For example, there can a "left turn" BannerInstructions available 1000m and 300m before a turn, where only the latter also contains lane information. By setting this flag to true
, you can filter out those duplicates which improves the presentation in, for example, a scrolling list.
The MapboxManeuverApi will ensure that no information is lost and the current maneuver is always up-to-date. It's only the upcoming duplicates that are continuously filtered out.
This option defaults to true
.