-
Notifications
You must be signed in to change notification settings - Fork 320
0.27.0 Migration Guide
Pablo Guardiola edited this page Jan 17, 2019
·
6 revisions
- Maps SDK
7.0> please see their migration guide here - New core location APIs > updated documentation here
- ☝️ both of these were updated in this PR
-
ReplayRouteLocationEnginewas updated with the newLocationEngineAPI updates. To use it withMapboxNavigationnow:
MapboxNavigation navigation = ...
DirectionsRoute routeToReplay = ...
ReplayRouteLocationEngine replayEngine = new ReplayRouteLocationEngine();
replayEngine.assign(routeToReplay);
navigation.setLocationEngine(replayEngine);
navigation.startNavigation(routeToReplay);
-
NavigationViewwill still replay the givenDirectionsRoutewithNavigationViewOptions#simulateRoute(true)
Using willVoice with NavigationView #1675:
We now pass a SpeechAnnouncement and ask for one in return. This is so you can take advantage of the ssmlAnnouncement field. Previously, with a String, parsing of the SSML was not possible.
Old:
@Override
public String willVoice(SpeechAnnouncement announcement) {
return "All announcements will be the same.";
}
New:
@Override
public SpeechAnnouncement willVoice(SpeechAnnouncement announcement) {
return SpeechAnnouncement.builder()
.announcement("Announcement")
.ssmlAnnouncement("SSML announcement")
.build();
}
A few unused methods in RouteUtils were removed. Following you can find which ones:
RouteUtils#isNewRoute(@Nullable RouteProgress previousRouteProgress, @NonNull RouteProgress routeProgress)RouteUtils#isNewRoute(@Nullable RouteProgress previousRouteProgress, @NonNull DirectionsRoute directionsRoute)RouteUtils#createFirstLocationFromRoute(DirectionsRoute route)RouteUtils#isValidRouteProfile(String routeProfile)RouteUtils#findCurrentBannerText(LegStep currentStep, double stepDistanceRemaining, boolean findPrimary)RouteUtils#findCurrentVoiceInstructions(LegStep currentStep, double stepDistanceRemaining)