Release Notes
Version 0.40.0 - 05/12/2023
Check the API ReferenceGeneral
Known issues
An incorrect routing endpoint is set by default in Guidance v2, making route calculations impossible with version 0.40.0 for some customers. Potential problems include prompts for a valid API key, such as:
- “Your API key is invalid.”
- “Your API key does not support either the Routing API or the Routing API with Extended Guidance endpoints.”.
Resolution of the issue involves upgrading SDK to version 0.46.0 or later.
Map
Breaking changes
- Eliminate the use of the route change listener and substitute it with the experimental
routeAddedandrouteRemovedlisteners in the navigation event dispatcher. - Suppress internal method from
RoutingVisualizationand avoid unwanted camera changes.
New Features
- Introduce
FollowRouteNorthUpcamera tracking mode. - Introduce GeoJson support for traffic and safety locations.
- Use lane information to place chevron on the map.
Fixes
- The vehicle restriction for a given vehicle type sometimes fails to display correctly.
Navigation
Breaking changes
- Remove
com.tomtom.sdk.navigation.NavigationFailure. - Remove
com.tomtom.sdk.navigation.NavigationFailureListener. - Remove method
com.tomtom.sdk.navigation.guidance.AnnouncementMode.toVerbosityLevel(). - Remove method
com.tomtom.sdk.navigation.TomTomNavigation.addNavigationFailureListener. - Remove method
com.tomtom.sdk.navigation.TomTomNavigation.removeNavigationFailureListener. - Remove method
com.tomtom.sdk.navigation.ui.NavigationFragment.NavigationListener.onFailed. - Remove public setters from some fields of ADASIS configuration data class.
- Remove the
com.tomtom.sdk.navigation.RoutesChangedListener. Use thecom.tomtom.sdk.navigation.RouteAddedListener,com.tomtom.sdk.navigation.RouteRemovedListenerandcom.tomtom.sdk.navigation.ActiveRouteChangedListenerto listen for route changes in the navigation. - Remove the
com.tomtom.sdk.navigation.TomTomNavigation.addRoutesChangedListener(RoutesChangedListener)and thecom.tomtom.sdk.navigation.TomTomNavigation.removeRoutesChangedListener(RoutesChangedListener)methods. - Set
com.tomtom.sdk.navigation.replanning.BetterProposalAcceptanceMode.Automaticas default for hybrid TomTomNavigation. - Set
com.tomtom.sdk.navigation.replanning.BetterProposalAcceptanceMode.Automaticas default for offline TomTomNavigation. - Set
com.tomtom.sdk.navigation.replanning.BetterProposalAcceptanceMode.Automaticas default for offroad TomTomNavigation. - Set
com.tomtom.sdk.navigation.replanning.BetterProposalAcceptanceMode.Automaticas default for online TomTomNavigation. - Update
com.tomtom.sdk.navigation.online.Configurationandcom.tomtom.sdk.navigation.offline.Configurationto injectcom.tomtom.sdk.safetyLocationsin order to simply the usage of safety location feature in Navigation during initialisation.
Fixes
- Fix out-of-memory crash during navigation with long route.
- Improve projected horizon based on route information.
- TomTomNavigationService” is correctly closed after calling the “close()” method.
Updates
com.tomtom.sdk.navigation.GuidanceUpdatedListeneris now available in General Availability.com.tomtom.sdk.navigation.LaneGuidanceUpdatedListeneris now available in General Availability.com.tomtom.sdk.navigation.replanning.BetterProposalAcceptanceModeis now available in General Availability.- Improve NAV starting guide with variable naming for location provider.
- Merge horizon elements if they are connected.
- Update API documentation:
com.tomtom.sdk.navigation.TomTomNavigation.
Routing
Breaking changes
com.tomtom.sdk.routing.options.guidance.GuidanceOptionsis no longer a data class.- Removed package
com.tomtom.sdk.routing.offline.infrastructure. - Removed package
com.tomtom.sdk.routing.range.offline.infrastructure.
Deprecations
- Guidance Option v1 is deprecated. Please use the new Guidance V2 factory methods.
- Deprecate
com.tomtom.sdk.routing.options.guidance.GuidanceOptionsconstructor, use the new constructorcom.tomtom.sdk.routing.options.guidance.GuidanceOptions()instead. - Deprecate
com.tomtom.sdk.routing.options.guidance.GuidanceOptionscomponent functions. - Deprecate
com.tomtom.sdk.routing.options.guidance.GuidanceOptions.copy()function, use extension function instead.
- Deprecate
Search
Fixes
- Cancel coroutine scope in OnlineSearch when the object is closed.
- Throw NetworkOnMainThreadException when sending feedback on the main thread.
Updates
- Extend the API documentation for Search, Autocomplete, POI details, Feedback, Geometry, Custom Data, Reverse Geocoder and Structure Search APIs.