Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

0.23.0 Migration Guide

Pablo Guardiola edited this pageDec 21, 2018 ·2 revisions

PRs that broke SEMVER:


InRemove MapboxNavigationOptions ignored by Navigator the followingMapboxNavigationOptions were removed:

  • maxTurnCompletionOffset();
  • maneuverZoneRadius();
  • maximumDistanceOffRoute();
  • deadReckoningTimeInterval();
  • maxManipulatedCourseAngle();
  • userLocationSnapDistance();
  • secondsBeforeReroute();
  • snapToRoute();
  • enableOffRouteDetection();
  • manuallyEndNavigationUponCompletion();
  • metersRemainingTillArrival();
  • minimumDistanceBeforeRerouting();

These options were removed, because with the introduction ofNavigator inhttps://github.com/mapbox/mapbox-navigation-android/pull/1265, we are no longer considering them in our core processing logic. We are going to look into allowing more configuration again as time progresses.


InRemove LocationValidator and force last Location if found, we remove theMapboxNavigationOption#locationAcceptableAccuracyInMetersThreshold(). We did this because this option was also not being considered.Navigator has its ownLocation filtering algorithms that will reject / accept updates for processing.


Add RouteProgressState to RouteProgress for current Navigator information we broke ourRouteUtils API. Detecting an arrival event withRouteUtils#isArrivalEvent now only requires aRouteProgress:

// OLDrouteUtils.isArrivalEvent(@NonNull RouteProgress routeProgress, @NonNull Milestone milestone)// NEW@Overridepublic void onProgressChange(Location location, RouteProgress routeProgress) {  RouteUtils routeUtils = new RouteUtils();  boolean isArrival = routeUtils.isArrivalEvent(routeProgress);}

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp