Repository navigation
Navigation SDK v3.33.0
Features
- Android Auto: added experimental public constructors so apps that own their navigation state can use the components without
MapboxCarContext:MapboxCarNavigationManager(carContext, onStopNavigation),MapboxCarNotification(carContext, notificationOptions)andCarSpeedLimitRenderer(speedLimitOptions). AddedCarNavigationTemplateswith the free drive, active guidance and route preview templates of the Mapbox navigation screen. - Added support for the
INITIALIZEDroute state during EV charging at the departure waypoint. AddedChargingState,RouteProgress#chargingState, andRouteProgress#isChargingExpectedto expose the current charging phase, andMapboxNavigation#startCharging/MapboxNavigation#stopChargingto control charging transitions.
Bug fixes and improvements
- Fixed the navigation camera zooming out and moving to the wrong place when it is asked to follow or show an overview before the viewport data is available, e.g. on a freshly created map.
- Fixed
UpcomingCamerasObserver.onSpeedZoneProgressbeing called for every active speed zone on each update when zones overlap. The callback now fires only for the most recently entered active zone. - Fixed native navigator instances not being released after
MapboxNavigationProvider.destroy(), causing background threads to accumulate across create/destroy cycles. -
- Fixed incorrect projected distance calculation in the navigation camera: the zoom scale was passed as a raw zoom level instead of
2^zoom, and a mistake made the Y-axis delta always zero.
- Fixed incorrect projected distance calculation in the navigation camera: the zoom scale was passed as a raw zoom level instead of
- Fixed
CarFeedbackOptions.Buildernot exposing a way to setbitmapEncodeOptions, which meantMapboxCarContext.customize { carFeedbackOptions = ... }had no effect.CarFeedbackOptionsnow also providestoBuilder(),equals(),hashCode()andtoString(). - Fixed Android Auto route preview: tapping Navigate on an alternative route row now starts guidance on that route instead of the currently selected one. A click from a route list that was replaced before the click arrived no longer starts a route from the new list.
- Fixed Android Auto crashes on unexpected state in user actions and observers:
- a car map style URI that is not a
mapbox://styles/{user}/{style}URI no longer crashesMapUserStyleObserver, and such styles no longer trigger failing designed-shield downloads; - an unknown lane indication is shown as an unknown lane shape instead of crashing lane guidance;
- route preview selection, Navigate and Back no longer crash when the preview was cleared or
MapboxNavigationis detached; CarNavigationCamera.zoomUpdatesAllowedno longer crashes before the map surface is attached;- Stop during active guidance no longer crashes when the arrival trigger is not attached.
- Fixed the legacy Android Auto route preview screen starting the previously selected route when Navigate is tapped right after selecting another route, starting guidance without routes, or showing an endless loading state when
MapboxNavigationis detached (it now shows free drive). - Fixed the Android Auto map zoom buttons turning off automatic zoom before the map surface is attached, and the Recenter button now updates when automatic zoom is turned back on.
- Fixed Android Auto place rows showing the text "null" when a place has no description.
GeoDeeplinkParserno longer throws on a query with a%that is not a valid escape (for examplegeo:0,0?q=50%off), matches thegeo:scheme case-insensitively, ignores RFC 5870;parameters, and ignores coordinates outside the valid latitude and longitude ranges.- Fixed an Android Auto crash when the car app reconnects after a geo deeplink was shown.
GeoDeeplinkPlacesCarScreenFactorynow shows the default map screen whenMapboxCarContext.geoDeeplinkPlacesProvideris not set and it creates the first screen. Otherwise aMapboxScreenManager.pushorMapboxScreenManager.replaceTopto it is logged and ignored, andMapboxScreenManager.createScreenthrows as before. - A new Android Auto car session no longer executes the
MapboxScreenManager.replaceTopandMapboxScreenManager.pushcommands emitted before it was created.MapboxScreenManager.current()still returns the last event. A screen factory that throws while handling a screen event is now logged and ignored instead of crashing the app. - Fixed
MapboxScreenManagerkeeping screens removed byreplaceTopin its back-stack, which leaked them and made back navigation decisions unreliable. - Fixed Android Auto screen events being dropped when more than 4 were emitted before a
MapboxScreenManager.screenEventcollector handled them, for example from inside a collector. A dropped event is now logged. - On Car API 7 and above, the Android Auto arrival screen now always returns to
MapboxScreen.NAVIGATIONwhen it is registered, even when other screens were opened during guidance. - Fixed a second voice destination on Android Auto still showing the places of the first one.
- Fixed Android Auto showing a destination flag for end-of-road turns. End-of-road maneuvers now map to turn maneuvers.
- Fixed Android Auto mapping a U-turn without a maneuver type to a destination, and an arrival without a modifier to an unknown maneuver.
- Android Auto U-turns, U-turn lanes, and forks and off-ramps without a side now follow the driving side, so left-hand traffic shows right-hand U-turns.
- Fixed the Android Auto roundabout exit number, which usually fell back to the first exit. It now comes from the route step of the roundabout. Leaving a roundabout or rotary now maps to a roundabout exit maneuver, including when the banner announcing it says "roundabout".
- Android Auto lane guidance now recommends only the direction of an active lane that the route takes, instead of every direction of that lane.
- Fixed
MapboxExitTextdrawing the right exit arrow for slight-left and sharp-left exits. - The Android Auto destination travel estimate now reports the remaining time of the whole route, which matches its distance and arrival time, without the added 30 seconds.
- Android Auto distances now use the same values and units as
MapboxDistanceUtil, including yards for British English. Fixed the car showing meters labelled as feet when the rounding increment is not positive. - Fixed
CarNavigationInfoProviderpublishing the route progress of an older road-shield request when the shields arrive late. - Fixed the MUTCD speed limit number on Android Auto being drawn too small and off-centre.
- The Android Auto speed limit warning now shows only above the speed limit plus the warning threshold. The Android Auto trip destination is named after the final waypoint, preferring the name given in the route request, and the fallback destination name and the
MapboxExitTextexit text are now localized string resources. - Android Auto: fixed a crash and wrong road shields when the car map uses a style that is not a
mapbox://styles/<user>/<id>style. - Fixed Android Auto
MapboxScreen.NAVIGATION(Car API 7+) ignoring MapboxCarOptions.routeLineRendererOptions: the route line and arrow on that screen now use the- configured options instead of the defaults, matching the other car screens.
- Fixed Android Auto
MapboxScreenManagercrashing withCarScreenFactory was not foundwhen a MapboxCarContextis created after the carSessionis already created (for example, lazily inSession.onCreateScreen) while a previous session's screen transition is still replayed. Screen- transitions to a key without a registered
MapboxScreenFactoryare now logged and ignored. - Fixed Android Auto search: submitting a query now runs the search immediately, and starting a
- new search now cancels any still-running previous one instead of racing it, so an older, slower
- response can no longer overwrite newer results.
Mapbox dependencies
This release depends on, and has been tested with, the following Mapbox dependencies:
- Mapbox Maps SDK
v11.33.0(release notes) - Mapbox Navigation Native
v324.33.0 - Mapbox Core Common
v24.33.0 - Mapbox Java
v7.10.1(release notes)