mapbox / mapbox-directions-swift

Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
https://www.mapbox.com/navigation/
ISC License
181 stars 87 forks source link

NAVIOS-663: Adjust incidents indices after refresh #752

Closed chezzdev closed 1 year ago

chezzdev commented 1 year ago

Incidents in the legs of the refreshed route come with shape ranges relative to the "current leg shape index". This is happening only for the first refreshed legs.

This PR also removes stale incidents that aren't in the refresh range (in parity with Android per https://github.com/mapbox/mapbox-navigation-ios/pull/4111#discussion_r986571149).