Preferred lane direction should be a ManeuverDirection, not a LaneIndication #534
Labels
backwards incompatible
changes that break backwards compatibility of public API
op-ex
Refactoring, Tech Debt or any other operational excellence work.
Milestone
Intersection.validIndication
and thepreferredDirection
associated value ofVisualInstruction.Component.lane(indications:isUsable:preferredDirection:)
are of typeLaneIndication
as of #529. ButLaneIndication
is an option set containing zero or more indications, whereas this property and associated value need to represent one and only one indication.ManeuverDirection
has the same cases asLaneIndication
but is always a single value. That would allow us to avoid the hack in #529 (comment) #532 (comment) and also allow the navigation SDK to avoid having to convert fromLaneIndication
toManeuverDirection
in places where it’s already using the primary maneuver direction to influence lane arrow highlighting.mapbox-directions-swift/Sources/MapboxDirections/VisualInstructionComponent.swift
Line 77 in 399d28c
This change would need to take place in v2.0.0 to avoid breaking backwards compatibility.
/cc @mapbox/navigation-ios
The text was updated successfully, but these errors were encountered: