Skip to content

Mapbox Navigation SDK 2.15.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@mapbox-github-ci-writer-public-1 mapbox-github-ci-writer-public-1 released this 21 Jul 12:04
· 31 commits to release-v2.15 since this release
a0afdf5

Mapbox Navigation SDK 2.15.0-rc.1 - 20 July, 2023

Changelog

Changes between v2.15.0-beta.1 and v2.15.0-rc.1

Features

  • Introduced RoutesInvalidatedObserver to be notified about routes invalidation. When this observer is fired, the routes passed as an argument will not be refreshed anymore, because they expired. It is recommended to rebuild a route in this case. Example usage: #7318
mapboxNavigation.registerRoutesInvalidatedObserver { routes ->
    val invalidatedIds = routes.map { it.id }
    val currentRoutes = mapboxNavigation.getNavigationRoutes()
    val primaryRoute = currentRoutes.firstOrNull()
    if (routes.any { it.id == primaryRoute?.id }) {
        // primary route is outdated - trigger reroute
        mapboxNavigation.getRerouteController()?.reroute(object : NavigationRerouteController.RoutesCallback {
            override fun onNewRoutes(
                routes: List<NavigationRoute>,
                routerOrigin: RouterOrigin
            ) {
                mapboxNavigation.setNavigationRoutes(routes)
            }
        })
    } else {
        // remove outdated alternatives
        mapboxNavigation.setNavigationRoutes(currentRoutes.filterNot { it.id in invalidatedIds })
    }
}
  • Introduced MERGING_AREA RoadObject type. You can receive Merging Areas via RouteProgress#upcomingRoadObjects and via EHorizonObserver. Note: to enable merging area collection when using EHorizon, set AlertServiceOptions#collectMergingAreas to true. #7358
  • Added new option to control gender of voice MapboxSpeechApiOptions.gender. #7337

Bug fixes and improvements

  • Now updated via MapboxNavigation#onEvDataUpdated parameters are added to continuous alternatives requests. #7380
  • Fixed snapping to a tunnel after driving out of underground parking. #7372
  • Fixed ADASIS assertion failures on KML files. #7372
  • Fixed MapMatching isuue where it might have picked the wrong tunnel. #7372
  • Fixes an issue where trail layer that indicates the traveled portion of the route was visible below inactive legs. #7363
  • Nav SDK now preserves charging stations after reroute. #7369

Known issues ⚠️

Other changes

Mapbox dependencies

This release depends on, and has been tested with, the following Mapbox dependencies:

  • Mapbox Maps SDK v10.15.0-rc.1 (release notes)
  • Mapbox Navigation Native v145.0.0
  • Mapbox Core Common v23.7.0-rc.1
  • Mapbox Java v6.13.0-beta.1 (release notes)