mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
Improve the arrival event to leg waypoint.
Description
This pr is to improve the arrival event. Right now the distance to the route leg destination to announce the arrival event is long. It would cause the arrival feedback window pops too early to cover the user location indicator and the route line. And in multi-leg route, it would also result in the arrival event of the current leg triggers too early, as far as 75 meters from the current leg destination.
Implementation
Added the public RouteControllerDistanceForArrival
as the distance threshold for the route leg remanning distance of current route. When the current route leg remanning distance equal or smaller than the RouteControllerDistanceForArrival
, the didArriveAt
event would be announced. It would make the arrival event more precise than the complete
route status.
Screenshots or Gifs
No breaking changes detected in MapboxCoreNavigation
No breaking changes detected in MapboxNavigation
Close this Pr because the arrival event should be triggered by the navigator side.