mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Improve the arrival event to leg waypoint.

Open ShanMa1991 opened this issue 2 years ago • 2 comments

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

ShanMa1991 avatar Mar 11 '22 01:03 ShanMa1991

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.

ShanMa1991 avatar Oct 06 '22 23:10 ShanMa1991