Release Notes
Version 0.50.0 - 06/06/2024
Discover the improvements and new features included in the following version. Share your thoughts on this release by using the feedback button located at the bottom of the page.
General
Breaking changes
-
TomTomSDKNavigationVisualization.SafetyLocationStyle.init(speedCameraLineColor:speedCameraOutlineColor:dangerZoneLineColor:dangerZoneOutlineColor:lineWidth:outlineWidth:markerStyleByCategory:areMarkersVisible:)
.throws
StyleConfigurationError/invalidArgument
if:lineWidth
is an empty list, has duplicates or has values not greater than 0;outlineWidth
is an empty list, has duplicates or has values not greater than 0. -
TomTomSDKNavigationVisualization.StyleConfiguration.init(route:routeTrafficIncident:safetyLocationStyle:betterRouteStyle:)
has parameters 0, 1, 2, 3 types change fromTomTomSDKRoutingVisualization.RouteStyle?
,TomTomSDKRoutingVisualization.RouteTrafficIncidentStyle?
,TomTomSDKNavigationVisualization.SafetyLocationStyle?
,TomTomSDKNavigationVisualization.BetterRouteStyle?
toTomTomSDKRoutingVisualization.RouteStyle
,TomTomSDKRoutingVisualization.RouteTrafficIncidentStyle
,TomTomSDKNavigationVisualization.SafetyLocationStyle
,TomTomSDKNavigationVisualization.BetterRouteStyle
. -
TomTomSDKRoutingVisualization.DestinationConnectionLineStyle.init(patternTexture:width:outlineColor:)
now throwsStyleConfigurationError/invalidArgument
ifwidth
is not greater than 0. -
TomTomSDKRoutingVisualization.StyleConfiguration.init(route:routeTrafficIncident:)
has parameters 0, 1 types change fromTomTomSDKRoutingVisualization.RouteStyle?
,TomTomSDKRoutingVisualization.RouteTrafficIncidentStyle?
toTomTomSDKRoutingVisualization.RouteStyle
,TomTomSDKRoutingVisualization.RouteTrafficIncidentStyle
. -
Remove
unreachableColor
andendOfRangeMarkerImage
fromTomTomSDKRoutingVisualization.RouteStyle.Defaults
. -
Remove
unreachableColor
andreachableDistanceMarkerImage
fromTomTomSDKRoutingVisualization.RouteStyle
. -
Remove
unreachableColor
andreachableDistanceMarkerImage
parameters fromTomTomSDKRoutingVisualization.RouteStyle.init(activeLineColor:activeLineWidths:activeOutlineWidths:alternativeLineColor:alternativeLineWidths:alternativeOutlineWidths:alternativeLineColorOverrule:departureMarkerImage:destinationMarkerImage:waypointsMarkerImage:areWaypointsVisible:unreachableColor:reachableDistanceMarkerImage:destinationConnectionLine:evWaypointMarker:isDepartureMarkerVisible:isDestinationMarkerVisible:)
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.Defaults.lineWidthForScenes
toTomTomSDKNavigationVisualization.BetterRouteStyle.Defaults.lineWidth
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.Defaults.outlineWidthForScenes
toTomTomSDKNavigationVisualization.BetterRouteStyle.Defaults.outlineWidth
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.init(lineWidthForScenes:outlineWidthForScenes:lineColor:markerStyle:isMarkerVisible:)
toTomTomSDKNavigationVisualization.BetterRouteStyle.init(lineWidth:outlineWidth:lineColor:markerStyle:isMarkerVisible:)
. It now throwsStyleConfigurationError/invalidArgument
if:lineWidth
is an empty list, has duplicates or has values not greater than 0;outlineWidth
is an empty list, has duplicates or has values not greater than 0. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.lineWidthForScenes
toTomTomSDKNavigationVisualization.BetterRouteStyle.lineWidth
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.MarkerStyle.Defaults.fontURL
toTomTomSDKNavigationVisualization.BetterRouteStyle.MarkerStyle.Defaults.textFontURI
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.MarkerStyle.fontURL
toTomTomSDKNavigationVisualization.BetterRouteStyle.MarkerStyle.textFontURI
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.MarkerStyle.init(pinImage:fontURL:textSize:textColor:textAnchoring:textOffset:)
toTomTomSDKNavigationVisualization.BetterRouteStyle.MarkerStyle.init(pinImage:textFontURI:textSize:textColor:textAnchoring:textOffset:)
. -
Rename
TomTomSDKNavigationVisualization.BetterRouteStyle.outlineWidthForScenes
toTomTomSDKNavigationVisualization.BetterRouteStyle.outlineWidth
. -
Rename
TomTomSDKNavigationVisualization.RouteStyleError
toTomTomSDKNavigationVisualization.StyleConfigurationError
. -
Rename
TomTomSDKNavigationVisualization.SafetyLocationStyle.SafetyLocationMarkerStyle
toTomTomSDKNavigationVisualization.SafetyLocationStyle.MarkerStyle
. -
Rename
TomTomSDKNavigationVisualization.SafetyLocationStyle.TextStyle.Defaults.fontURL
toTomTomSDKNavigationVisualization.SafetyLocationStyle.TextStyle.Defaults.fontURI
. -
Rename
TomTomSDKNavigationVisualization.SafetyLocationStyle.TextStyle.fontURL
toTomTomSDKNavigationVisualization.SafetyLocationStyle.TextStyle.fontURI
. -
Rename
TomTomSDKNavigationVisualization.SafetyLocationStyle.TextStyle.init(fontURL:color:size:offset:anchoring:)
toTomTomSDKNavigationVisualization.SafetyLocationStyle.TextStyle.init(fontURI:color:size:offset:anchoring:)
. -
Rename
TomTomSDKRoutingVisualization.LinePatternDisplay
toTomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.LinePatternDisplay
. -
Rename
TomTomSDKRoutingVisualization.MagnitudeOfDelayKey
toTomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.MagnitudeOfDelayKey
. -
Rename
TomTomSDKRoutingVisualization.MarkerVisibility
toTomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.MarkerVisibility
. -
Rename
TomTomSDKRoutingVisualization.RouteStyle.EVWaypointMarkerStyle.Defaults.fontURL
toTomTomSDKRoutingVisualization.RouteStyle.EVWaypointMarkerStyle.Defaults.textFontURI
. -
Rename
TomTomSDKRoutingVisualization.RouteStyle.EVWaypointMarkerStyle.fontURL
toTomTomSDKRoutingVisualization.RouteStyle.EVWaypointMarkerStyle.textFontURI
. -
Rename
TomTomSDKRoutingVisualization.RouteStyle.EVWaypointMarkerStyle.init(pinImage:textColor:textSize:fontURL:textAnchoring:textOffset:)
toTomTomSDKRoutingVisualization.RouteStyle.EVWaypointMarkerStyle.init(pinImage:textColor:textSize:textFontURI:textAnchoring:textOffset:)
. -
Rename
TomTomSDKRoutingVisualization.RouteStyleError
toTomTomSDKRoutingVisualization.StyleConfigurationError
. -
Rename
TomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.init(lineWidths:lineOutlineWidths:lineStartCapType:lineEndCapType:lineJointType:markerLabelFontURL:markerLabelTextSize:markerLabelTextOutlineWidth:markerLabelTextOffset:markerLabelTextAnchoring:markerVisibilityByCategory:propertiesByMagnitudeOfDelay:areMarkersVisible:)
toTomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.init(lineWidths:lineOutlineWidths:lineStartCapType:lineEndCapType:lineJointType:markerLabelFontURI:markerLabelTextSize:markerLabelTextOutlineWidth:markerLabelTextOffset:markerLabelTextAnchoring:markerVisibilityByCategory:propertiesByMagnitudeOfDelay:areMarkersVisible:)
. -
Rename
TomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.markerLabelFontURL
toTomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.markerLabelFontURI
. -
Rename
TomTomSDKRoutingVisualization.TrafficIncidentCategoryKey
toTomTomSDKRoutingVisualization.RouteTrafficIncidentStyle.TrafficIncidentCategoryKey
.
Updates
- Add parameter
outlineColor
toTomTomSDKRoutingVisualization.DestinationConnectionLineStyle.init(patternTexture:width:outlineColor:)
. - Promote
NavigationVisualization.StyleConfiguration
to General Availability. All members stay in Public Preview. - Promote
RoutingVisualization.StyleConfiguration
to General Availability. All members stay in Public Preview.
Location
Breaking changes
- Rename
TomTomSDKLocationProvider.LocationProvider.location
toTomTomSDKLocationProvider.LocationProvider.lastKnownLocation
. - Rename
TomTomSDKLocationProvider.LocationProvider.start()
toTomTomSDKLocationProvider.LocationProvider.enable()
. - Rename
TomTomSDKLocationProvider.LocationProvider.stop()
toTomTomSDKLocationProvider.LocationProvider.disable()
. - Rename
TomTomSDKLocationProvider.LocationProviderObservable.onLocationUpdated(location: GeoLocation)
toTomTomSDKLocationProvider.LocationUpdateObserver.(location: GeoLocation)
. - Rename
TomTomSDKLocationProvider.LocationProviderObservable
toTomTomSDKLocationProvider.LocationUpdateObserver
.
Removals
- Remove
TomTomSDKLocationProvider. LocationProviderObservable.onHeadingUpdate(newHeading: CLHeading, lastLocation: GeoLocation)
method. UseTomTomSDKLocationProvider.LocationProviderObservable.onLocationUpdated(location: GeoLocation)
method to notify the observer of heading update.
Map
Breaking changes
- Remove
TomTomSDKSearchVisualization.SearchConfiguration.categories
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.Defaults.categories
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.Defaults.detourTime
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.Defaults.numberOfResults
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.Defaults
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.detourTime
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.EngineType.combustion(fuelTypes:)
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.EngineType.electric(connectors:)
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.engineType
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.EngineType
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.init(categories:detourTime:numberOfResults:minPower:maxPower:engineType:openingHoursMode:)
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.maxPower
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.minPower
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.numberOfResults
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration.openingHoursMode
. - Remove
TomTomSDKSearchVisualization.SearchConfiguration
. - Remove
TomTomSDKSearchVisualization.SearchVisualization.addTapObserver(_:)
. - Remove
TomTomSDKSearchVisualization.SearchVisualization.clear()
. - Remove
TomTomSDKSearchVisualization.SearchVisualization.display(searchResults:)
. - Remove
TomTomSDKSearchVisualization.SearchVisualization.displayPOIsAlongRoute(geometry:configuration:completion:)
. - Remove
TomTomSDKSearchVisualization.SearchVisualization.remove(searchResults:)
. - Remove
TomTomSDKSearchVisualization.SearchVisualization.removeTapObserver(_:)
. - Remove
TomTomSDKSearchVisualization.SearchVisualization
. - Remove
TomTomSDKSearchVisualization.SearchVisualizationFactory.create(map:)
. - Remove
TomTomSDKSearchVisualization.SearchVisualizationFactory.create(search:map:)
.
New features
- Search visualisation can now visualize search results directly by calling
TomTomSDKSearchVisualization.SearchVisualization.display(searchResults:)
.
Updates
- Improve
TomTomSDKMapDisplay.VisibleRegion
documentation. - Improve documentation for
TomTomSDKMapDisplay.LocationProvider
andTomTomSDKMapDisplay.TomTomMap.LocationActions
. - Update requirement of the followable route to
TomTomSDKMapDisplay.FollowCameraOperatorConfig.controlPointsMap
documentation. - Update the configuration for elastic data provider.
Navigation
Breaking changes
- Add new member
detailedHazardInformation
to theHazard
class and stop using it as an associated value toHazardType
. - Avoid nesting Hazard-related types in the
Hazard
class. - Remove
TomTomSDKNavigation.NavigationAlreadyStaredError
andTomTomSDKNavigation.NavigationIncompatibleVehicleError
.
Updates
-
Improve documentation for.
TomTomSDKNavigation.TomTomNavigation.navigationState
,TomTomSDKNavigation.TomTomNavigation.start()
,TomTomSDKNavigation.TomTomNavigation.start(navigationOptions:)
,TomTomSDKNavigation.TomTomNavigation.stop()
,TomTomSDKNavigation.NavigationState
,TomTomSDKNavigation.NavigationStateChangeObserver
.
-
Remove
TomTomSDKNavigation.NavigationAlreadyStaredError
andTomTomSDKNavigation.NavigationIncompatibleVehicleError
explicit references from theTomTomSDKNavigation.TomTomNavigation
methods.
Fixes
-
Deviations on imported routes no longer ignore waypoints when deviating.
-
Return the instance of the property
TomTomNavigation.navigationSnapshot
only when navigation is started.If the navigation is not yet started or has already been stopped, the property returns
nil
.
Routing
New features
- Extend
ItineraryPoint
with charging station's UUID andRouteLegOptions
with source type.
Updates
- Promote
TomTomSDKRangeCalculator.Range
to General Availability. - Promote
TomTomSDKRangeCalculator.RangeBoundary
to General Availability.
Search
Fixes
- Populate missing address fields in reverse geocoder.