Release Notes
Version 0.43.0 - 05/01/2024
Check the API ReferenceGeneral
Breaking changes
- Added new
nullableparameter ofcom.tomtom.sdk.datamanagement.datastore.UpdatableDataStoretype tocom.tomtom.sdk.navigation.hybrid.Configurationconstructor. - Added new
nullableparameter ofcom.tomtom.sdk.datamanagement.datastore.UpdatableDataStoretype tocom.tomtom.sdk.navigation.offline.Configurationconstructor. - Added the
com.tomtom.sdk.datamanagement.datastore.UpdatableDataStore?object as a second parameter in the`com.tomtom.sdk.datamanagement.hybridnavigationdata.HybridNavigationDataStoreconstructor. - Changed the first parameter from
com.tomtom.sdk.datamanagement.hybridnavigationdata.HybridNavigationDataStoreAccessconstructor from public propertycom.tomtom.sdk.datamanagement.nds.NdsStoreto private propertycom.tomtom.sdk.datamanagement.datastore.UpdatableDataStore?`. - Changed the first parameter in the
com.tomtom.sdk.datamanagement.nds.update.compositeregion.CompositeRegionsUpdaterclass fromcom.tomtom.sdk.datamanagement.nds.NdsStoretocom.tomtom.sdk.datamanagement.nds.update.NdsStoreUpdater. - Made
com.tomtom.sdk.datamanagement.nds.NdsStoreparameter incom.tomtom.sdk.datamanagement.hybridnavigationdata.HybridNavigationDataStoreconstructor as private value. - Moved
com.tomtom.sdk.datamanagement.nds.AutomaticMapUpdateFailureListenertocom.tomtom.sdk.datamanagement.nds.update.AutomaticMapUpdateFailureListener. - Moved
com.tomtom.sdk.datamanagement.nds.MapUpdateErrortocom.tomtom.sdk.datamanagement.nds.update.MapUpdateError. - Moved
com.tomtom.sdk.datamanagement.nds.MapUpdateMapAccessSyncClientAdaptertocom.tomtom.sdk.datamanagement.nds.update.MapUpdateMapAccessSyncClientAdapter. - Moved
com.tomtom.sdk.datamanagement.nds.NdsStore.addAutomaticMapUpdateFailureListener,com.tomtom.sdk.datamanagement.nds.NdsStore.addRegionGraphListener,com.tomtom.sdk.datamanagement.nds.NdsStore.cancelAllMapOperations,com.tomtom.sdk.datamanagement.nds.NdsStore.findRegionsAlongPolyline,com.tomtom.sdk.datamanagement.nds.NdsStore.findRegionsAroundPosition,com.tomtom.sdk.datamanagement.nds.NdsStore.removeAutomaticMapUpdateFailureListener,com.tomtom.sdk.datamanagement.nds.NdsStore.removeRegionGraphListener,com.tomtom.sdk.datamanagement.nds.NdsStore.scheduleMapOperations,com.tomtom.sdk.datamanagement.nds.NdsStore.setUpdatesEnabled,com.tomtom.sdk.datamanagement.nds.NdsStore.updateActiveRoute,com.tomtom.sdk.datamanagement.nds.NdsStore.updatePosition, tocom.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.addAutomaticMapUpdateFailureListener,com.tomtom.sdk.datamanagement.nds.NdsStore.addRegionGraphListener,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.cancelAllMapOperations,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.findRegionsAlongPolyline,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.findRegionsAroundPosition,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.removeAutomaticMapUpdateFailureListener,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.removeRegionGraphListener,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.scheduleMapOperations,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.setUpdatesEnabled,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.updateActiveRoute,com.tomtom.sdk.datamanagement.nds.NdsStoreUpdater.updatePosition. - Moved
com.tomtom.sdk.datamanagement.nds.NdsStoreUpdateConfigfromcom.tomtom.sdk.datamanagement.nds.NdsStoreConfigurationtocom.tomtom.sdk.datamanagement.nds.update.NdsStoreUpdateConfig. - Moved
com.tomtom.sdk.datamanagement.nds.RegionGraphListenertocom.tomtom.sdk.datamanagement.nds.update.RegionGraphListener. - Removed AccidentBlackspotZone from
com.tomtom.sdk.safetylocations.model.SafetyLocationType. - Removed the
com.tomtom.sdk.datamanagement.hybridnavigationdata.HybridNavigationDataStoreAccess.getNdsStore()method. - Renamed
com.tomtom.sdk.datamanagement.datastoreupdater.DataStoreUpdatertocom.tomtom.sdk.datamanagement.datastoreupdater.RouteContextUpdater. - The
com.tomtom.sdk.datamanagement.nds.NdsStore.locationDecoderfield is no longer marked aslateinit. - The
com.tomtom.sdk.datamanagement.nds.NdsStoreclass no longer implementscom.tomtom.sdk.datamanagement.datastore.UpdatableDataStore.
New Features
- Introduced experimental interceptors API.
Updates
VehicleProvider,VehicleProviderFactoryandVehicleUpdatedListenerin packagecom.tomtom.sdk.vehicleare now available under General Availability.- All vehicle properties in package
com.tomtom.sdk.vehicle.propertyare now available in General Availability. - Class
com.tomtom.sdk.vehicle.AdrTunnelRestrictionCodeis now available in General Availability. - Class
com.tomtom.sdk.vehicle.AltitudeChangeEfficiencyis now available in General Availability. - Class
com.tomtom.sdk.vehicle.AltitudeChangeEnergyis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ChargeLevelis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ChargingConnectoris now available in General Availability. - Class
com.tomtom.sdk.vehicle.ChargingInformationis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ChargingParametersis now available in General Availability. - Class
com.tomtom.sdk.vehicle.CombustionEngineis now available in General Availability. - Class
com.tomtom.sdk.vehicle.CombustionVehicleConsumptionis now available in General Availability. - Class
com.tomtom.sdk.vehicle.CombustionVehicleEfficiencyis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ConnectorDetailsis now available in General Availability. - Class
com.tomtom.sdk.vehicle.CurrentTypeis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ElectricEngineis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ElectricVehicleConsumptionis now available in General Availability. - Class
com.tomtom.sdk.vehicle.ElectricVehicleEfficiencyis now available in General Availability. - Class
com.tomtom.sdk.vehicle.Vehicleis now available in General Availability. - Class
com.tomtom.sdk.vehicle.VehicleDimensionsis now available in General Availability. - Class
com.tomtom.sdk.vehicle.VehicleLoadTypeis now available in General Availability. - Class
com.tomtom.sdk.vehicle.VelocityChangeEfficiencyis now available in General Availability. - Fixed documentation mistake for
ElectricEnginePropertiesandCombustionEnginePropertiesin packagecom.tomtom.sdk.vehicle.property.
Known issues
An incorrect routing endpoint is set by default in Guidance v2, making route calculations impossible with version 0.43.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
- Renamed
com.tomtom.sdk.map.display.camera.CameraTrackingMode.Followtocom.tomtom.sdk.map.display.camera.CameraTrackingMode.FollowNorthUp. - Renamed
com.tomtom.sdk.map.display.camera.CameraTrackingMode.FollowRoutetocom.tomtom.sdk.map.display.camera.CameraTrackingMode.FollowRouteDirection. - Renamed
updateReasonargument ofcom.tomtom.sdk.map.display.visualization.navigation.NavigationEventDispatcher.dispatchOnRouteUpdated(Route, RouteUpdatedReason)to`reason.
Deprecations
- Deprecated
com.tomtom.sdk.map.display.camera.CameraTrackingMode.Companion.Follow, replace bycom.tomtom.sdk.map.display.camera.CameraTrackingMode.Companion.FollowNorthUp. - Deprecated
com.tomtom.sdk.map.display.camera.CameraTrackingMode.Companion.FollowRoute, replace bycom.tomtom.sdk.map.display.camera.CameraTrackingMode.Companion.FollowRouteDirection.
New Features
- Introduced Geojson polygon client implementation.
- Introduced Geojson polygon overlay client implementation.
- Introduced new classes for GeoJson polygon overlay options.
- Introduced new route API for routing and navigation.
Fixes
- Corrected padding attribute format in attrs.xml.
- Modified lane level route line widths and removed route outline.
- Remove unnecessary exception throws in VehicleController.
Updates
- Class
com.tomtom.sdk.map.display.vehicle.VehicleControlleris now available in General Availability. - NavigationEventDispatcher is now available in General Availability.
- NavigationEventDispatcherFactory is now available in General Availability.
- NavigationVisualization.setTrackingMode is now available in General Availability.
- Update camera properties for default follow route operators.
- Updated style specification link in
com.tomtom.sdk.map.display.style.StyleDescriptor.
Navigation
Breaking changes
Com.tomtom.sdk.navigation.progress.RouteProgress.remainingRouteStopsProgressrenamed toremainingWaypointsProgress.- Added group caching and prefetching attributes in NavigationTileStoreConfiguration.
- Changed
NavigationTileStoreConfiguration.PrefetchingConfiguration.requestLaneTilesvariable name toshouldRequestLaneTiles. - Changed Tile Service location type from Uri to Url.
- Converted
com.tomtom.sdk.navigation.mapmatching.MapMatchingResultandcom.tomtom.sdk.navigation.mapmatching.MatchedLocationfrom data class to class. - Method
com.tomtom.sdk.navigation.progress.RouteProgressEngine.calculateProgresshas changed return type fromcom.tomtom.sdk.navigation.progress.RouteProgressto java.util.Map<`com.tomtom.sdk.routing.route.RouteId`,com.tomtom.sdk.navigation.progress.RouteProgress>. - Method
com.tomtom.sdk.navigation.routereplanner.RouteReplanner.backToRoutehas changed return type fromcom.tomtom.sdk.common.Result<com.tomtom.sdk.navigation.routereplanner.routereplannerresponse,com.tomtom.sdk.routing.routingfailure>tocom.tomtom.sdk.common.Result<com.tomtom.sdk.navigation.routereplanner.routereplannerresponse,com.tomtom.sdk.navigation.replanning.routereplanningfailure>. - Method
com.tomtom.sdk.navigation.routereplanner.RouteReplanner.incrementRouteContentshas changed return type fromcom.tomtom.sdk.common.Result<com.tomtom.sdk.navigation.routereplanner.routereplannerresponse,com.tomtom.sdk.routing.routingfailure>tocom.tomtom.sdk.common.Result<com.tomtom.sdk.navigation.routereplanner.routereplannerresponse,com.tomtom.sdk.navigation.replanning.routereplanningfailure>. - Method
com.tomtom.sdk.navigation.routereplanner.RouteReplanner.updatehas changed return type fromcom.tomtom.sdk.common.Result<com.tomtom.sdk.navigation.routereplanner.routereplannerresponse,com.tomtom.sdk.routing.routingfailure>tocom.tomtom.sdk.common.Result<com.tomtom.sdk.navigation.routereplanner.routereplannerresponse,com.tomtom.sdk.navigation.replanning.routereplanningfailure>. - Migrated
com.tomtom.sdk.navigation.arrival.WaypointArrivalStatusfrom data class to class. - NavigationTileStoreAccess API changed to internal.
- Refactored
com.tomtom.sdk.navigation.RouteAddedListenerby adding RoutePlanningOptions to the onRouteAdded method. - Removed
com.tomtom.sdk.navigation.mapmatching.featuretoggle.PathMatcherFeaturefrom the Public Preview. GSMM is used as the only strategy. - Removed
dataclass modifier fromcom.tomtom.sdk.navigation.routeprojection.ProjectedRoute. - Removed
dataclass modifier from ConfigurationSnapshot. - Removed
VehicleProvider.setVehiclemethod in favor of the mutable propertyVehicleProvider.vehiclein packagecom.tomtom.sdk.vehicle. - Removed data modifier from ProjectedRouteSection.
- Renamed
com.tomtom.sdk.navigation.RouteUpdateReasontocom.tomtom.sdk.navigation.RouteUpdatedReason. - Renamed
VehicleProvider.updateVehiclemethod toVehicleProvider.updateVehiclePropertiesin packagecom.tomtom.sdk.vehicle. - Renamed
VehicleProvider.vehicleSnapshotproperty toVehicleProvider.vehicleand make it mutable in packagecom.tomtom.sdk.vehicle. - Renamed the
updateReasonargument ofcom.tomtom.sdk.navigation.RouteUpdatedListener.onRouteUpdated(Route, RouteUpdatedReason)to`reason. - Replaced
com.tomtom.sdk.navigation.TomTomNavigation.updatewithcom.tomtom.sdk.navigation.TomTomNavigation.setActiveRoutePlan. - Simplified the main constructor of online configuration.
New Features
- Added support for calculating progress for active route and better proposal.
Fixes
- Fixed crashes on lower Android versions due to failed resolution of
java.time.Clock. - Route point offset is now correctly calculated for a route update.
Updates
Com.tomtom.sdk.datamanagement.navigationtile.NavigationTileStoreConfigurationis now available in General Availability.Com.tomtom.sdk.navigation.DrivingHistorySnapshotis no longer data class.Com.tomtom.sdk.navigation.TomTomNavigation.betterProposalAcceptanceModeis now available in General Availability.RouteProgressis now calculated only for the matched locations that are following the route. Otherwise, the previousRouteProgressis published.TomTomNavigation.locationProviderin packagecom.tomtom.sdk.navigationis now available under General Availability.- Added a note to use TomTomNavigation from main thread.
- Added articles to documentation on continuous replanning and route deviation.
- Added exceptions information to documentation for guidance instructions.
- Added missing test for OfflineTomTomNavigationFactory when UnifiedMapAccessFeature is enabled.
- Changed the default value of better proposal acceptance mode in constructor of offline/Configuration.
- Decoding safety location coordinates from openlr and use them in bounding box check.
- Improved docs for ProgressUpdatedListener and TomTomNavigation.addProgressUpdatedListener.
- Improved RouteProgress calculation at the interactions to avoid progress jumps.
- Improved testing of NavigationTileStore instantiation.
- Marked
com.tomtom.sdk.navigation.replanning.ReplanningRetryPolicyFactory.DEFAULT_MAX_RETRY_DELAYas public. - Promoted
com.tomtom.sdk.navigation.ActiveRouteChangedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.replanning.ReplanningRetryPolicyandcom.tomtom.sdk.navigation.replanning.ReplanningRetryPolicyFactoryto General Availability. - Promoted
com.tomtom.sdk.navigation.RouteAddedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.RouteAddedReasonto General Availablity. - Promoted
com.tomtom.sdk.navigation.RouteRemovedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.RouteRemovedReasonto General Availablity. - Promoted
com.tomtom.sdk.navigation.TomTomNavigation.addActiveRouteChangedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.TomTomNavigation.addRouteAddedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.TomTomNavigation.addRouteRemovedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.TomTomNavigation.removeActiveRouteChangedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.TomTomNavigation.removeRouteAddedListenerto General Availablity. - Promoted
com.tomtom.sdk.navigation.TomTomNavigation.removeRouteRemovedListenerto General Availablity. - Publishing
WaypointArrivalState.Visitedwhen the user deviates for over 100m on a motorway and 50m on other roads from the route while visiting the waypoint. - Updated documentation in
com.tomtom.sdk.navigation.arrival.WaypointArrivalStateandcom.tomtom.sdk.navigation.arrival.WaypointArrivalStatus. - Updated inline documentation of MapMatchingResult and MatchedLocation APIs.
- When
BetterProposalAcceptanceMode.Manualis set, the route, provided by theRouteAddedListenerfor reasonsRouteAddedReason.AvoidBlockageandRouteAddedReason.WithinRange, is now without the departure instruction. - When
BetterProposalAcceptanceMode.ManualorBetterProposalAcceptanceMode.UnreachableOnlyis set, the route provided by the RouteAddedListener RouteAddedReason.BetterRouteProposed reason is now without the departure instruction.
Routing
Breaking changes
- Removed
com.tomtom.sdk.routing.route.instruction.follow.FollowInstructionclass. - Removed
com.tomtom.sdk.routing.route.instruction.followpackage .
Deprecations
- Deprecated
com.tomtom.sdk.routing.options.guidance.OnlineApiVersion.v1,start usingcom.tomtom.sdk.routing.options.guidance.OnlineApiVersion.v2instead. - Deprecated
com.tomtom.sdk.routing.route.instruction.arrival.ArrivalInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.arrival.ArrivalInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.autotransport.EnterAutoTransportInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.autotransport.EnterAutoTransportInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.autotransport.ExitAutoTransportInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.autotransport.ExitAutoTransportInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.bordercrossing.BorderCrossingInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.bordercrossing.BorderCrossingInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.carpoollane.EnterCarpoolLaneInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.carpoollane.EnterCarpoolLaneInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.carpoollane.ExitCarpoolLaneInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.carpoollane.ExitCarpoolLaneInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.departure.DepartureInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.departure.DepartureInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.fork.ForkInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.fork.ForkInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.highway.ExitHighwayInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.highway.ExitHighwayInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.highway.SwitchHighwayInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.highway.SwitchHighwayInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.Instruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.Instruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.mandatoryturn.MandatoryTurnInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.mandatoryturn.MandatoryTurnInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.merge.MergeInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.merge.MergeInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.roundabout.ExitRoundaboutInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.roundabout.ExitRoundaboutInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.roundabout.RoundaboutInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.roundabout.RoundaboutInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.tollgate.TollgateInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.tollgate.TollgateInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.turn.TurnInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.turn.TurnInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.turnaroundwhenpossible.TurnAroundWhenPossibleInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.turnaroundwhenpossible.TurnAroundWhenPossibleInstruction.combineWithNextproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.waypoint.WaypointInstruction.announcementsproperty. - Deprecated
com.tomtom.sdk.routing.route.instruction.waypoint.WaypointInstruction.combineWithNextproperty.
Fixes
- Fixed online EV routing with Orbis. Passing the value of chargingStopsStrategy to Online API only if its value is equal to manualFastest. If its value is equal to automaticFastest, it will be automatically handled by the Online API.
Updates
Com.tomtom.sdk.routing.options.guidance.OnlineApiVersionis now available in General Availability.
Search
Fixes
- Fixed the crash in personal locations loading by enabling the missing consumer proguard rule needed for serialization.
- Populating sub-country and 2-letter iso country code in the reverse geocoder response.
Updates
- Documented minimum and maximum values for the radius and heading for reverse geocoding options.
- Improved API documentation for hybrid search.
- Using cleaner function in OfflineSearchClient.kt.
Traffic
Deprecations
- Deprecated TrafficTpeg and TrafficTpegConfiguration. Use the new TrafficClientFactory instead.
Fixes
- The correct URL is now used when creating the default TomTom traffic provider.