VisualNavigator (API Reference)
Class VisualNavigator
- All Implemented Interfaces:
LocationListener,NavigatorInterface
This class provides all functionality of NavigatorInterface. In addition,
it provides advanced rendering capabilities for a smooth navigation experience.
This includes interpolation of location updates along a route during turn-by-turn navigation
and during tracking mode. By default, suitable map view settings are automatically applied.
For example, a predefined current location marker is rendered.
Similar to Navigator, this class continuously reacts to new locations
provided from a location source and acts as a LocationListener.
Note that the VisualNavigator takes control of the MapView's (maximum) frame rate when rendering,
i.e., between startRendering(com.here.sdk.mapview.MapViewBase) and stopRendering() calls. It overwrites the MapView's frame
rate when some camera behavior is set using the getGuidanceFrameRate(). When no camera behavior
is preset, the original MapView's frame rate (the value prior to the startRendering(com.here.sdk.mapview.MapViewBase) call) will
be used. While the VisualNavigator is rendering, direct changes in the MapView's frame rate can
lead to unexpected behavior and therefore should be avoided.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this class.VisualNavigator(SDKNativeEngine sdkEngine) Creates a new instance of this class.VisualNavigator(SDKNativeEngine sdkEngine, NavigatorInterface navigator) Creates a new instance of this class using provided instance ofNavigatorInterfaceas source of data.VisualNavigator(NavigatorInterface navigator) Creates a new instance of this class using provided instance ofNavigatorInterfaceas source of data. -
Method Summary
Modifier and TypeMethodDescriptioncalculateRemainingDistanceInMeters(GeoCoordinates coordinates) This method calculates the distance between the current position and given coordinates.static Map<MapMeasure,Double> Retrieves a dictionary of default route and maneuver arrow widths as a function ofMapMeasures.static List<LanguageCode>Returns the list of languages for maneuver notification currently available in the SDK.Gets the listener to receive notifications about border crossings on the current road.Gets border crossing warning options to be passed toBorderCrossingWarningListener.Gets the currently set camera behavior.Gets an object containing colors used to render route progress and maneuver arrow visualization.Gets the listener to receive current situation lane assistance view notifications.Gets the currently setLocationIndicator.Gets the listener to receive current danger zones notifications.Gets the path of the GPX file, is any available, currently being displayed on the map.Gets the listener that notify when the destination has been reached.Gets the listener to receive current environmental zones notifications.Gets the listener that notifies when a text notification is available.Gets the text notification options.intFrame rate used during guidance.Gets the listener that receives interpolated locations.Gets the listener to receive junction view lane assistance notifications.Gets the listener to receive notifications about low speed zones on the current road.getManeuver(int index) Returns maneuver at the given index.doubleGets the factor that multiplies width of the maneuver arrow defined bygetMeasureDependentWidth().Gets the maneuver notification options.getManeuverNotificationTimingOptions(TransportMode transportMode, TimingProfile timingProfile) Returns maneuver notification timing options with default values given the combination of transport mode and timing profile.Gets the listener to receive maneuver view lane assistance notifications.Gets theMapMeasuredependent polyline and maneuver arrow width in pixels.Gets the listener that notifies when aMilestonehas been reached or missed.Gets the listener that notifies current location updates.Gets the listener that notifies when the off-road destination has been reached.Gets the listener that notifies about off-road progress.Gets the listener to receive post action notifications, such as a charge action at a charging station.Gets the listener to receive notifications about railway crossings on the current road.Gets the listener to receive notifications about junction views on the current road.Gets realistic view warning options that allow to filter realistic views to be passed toRealisticViewWarningListener.Gets the listener to receive notifications about attributes of the current road.Gets the listener to receive notifications about road signs on the current road.Gets road sign warning options that allow to filter road signs to be passed toRoadSignWarningListener.Gets the listener to receive notifications about the textual attributes of the current road.getRoute()Gets the route that is being navigated.Gets the listener that notifies when deviation from the route is observed.intThe draw order of the polylines representing the route.The draw order type of the polylines representing the route.Gets the listener that notifies when a route progress change occurs.Gets the listener to receive safety camera warning notifications.Gets safety camera warning options to be passed toSafetyCameraWarningListener.Gets the listener to receive notifications about school zones on the current road.Gets school zone warning options that allow to configure school zone notifications to be passed toSchoolZoneWarningListener.Gets the listener to receive notifications about the speed limit of the current road.Gets the listener to receive notifications when a speed limit on a road is exceeded or driving speed is restored back to normal.Gets the speed warning options.Gets the listener to receive notifications about the the upcoming toll stop.Gets the transport profile for theNavigator, when no route is present.Gets the listener to receive notifications about merging traffic to the current road.Gets merging traffic warning options that allow to configure merging traffic notifications to be passed toTrafficMergeWarningListener.Gets the traffic information for the current route.Gets the listener to receive notifications about truck restrictions on the current road.Gets truck restrictions warning options that allow to filter truck restrictions to be passed toTruckRestrictionsWarningListener.getWarningNotificationDistances(WarningType warningType) Returns the warning notification distances for the requested warning type.booleanGets the current debug mode state.booleanControls whether the number of map updates is dynamically calculated based on the current zoom level.booleanReturntrueif tunnel extrapolation is enabled otherwisefalse.booleanGets the current state of the position extrapolation logic.booleanGets a boolean indicating if the halo accuracy visualization of the defaultLocationIndicatoris rendered or not.booleanGets the current state of maneuver arrow rendering during visual navigation.booleanGets the current state of off-road destination visualization during visual navigation.booleanReturntrueif handling of passthrough waypoints is enabled, otherwise -false.booleanReturns a value indicating whether visual navigation rendering is enabled.booleanGets the current state of route progress during visual navigation.booleanGets the current state of route rendering during visual navigation.booleanGets the current state whether traffic conditions on route should be displayed during visual navigation.voidonLocationUpdated(Location location) Called each time a new location is available.voidCall of this function is used to trigger the navigator to repeat the last maneuver notification based on the current position.voidSets the listener to receive notifications about border crossings on the current road.voidSets border crossing warning options to be passed toBorderCrossingWarningListener.voidsetCameraBehavior(CameraBehavior value) Sets how the VisualNavigator handles the camera.voidsetColors(VisualNavigatorColors value) Sets an object containing colors used to render route progress and maneuver arrow visualization.voidSets the listener to receive current situation lane assistance view notifications.voidSets a customLocationIndicator, so thatVisualNavigatoruses the provided one instead of the default.voidsetCustomOption(String key, String value) This method sets custom options that controls navigator behavior.voidSets the listener to receive current danger zones notifications.voidsetDebugGpxFilePath(String value) Sets the path of a GPX file to be displayed on the map.voidsetDebugModeEnabled(boolean value) Sets whether to enable debug mode or not.voidSets the listener that notify when the destination has been reached.voidsetDynamicFrameRateEnabled(boolean value) Controls whether the number of map updates is dynamically calculated based on the current zoom level.voidsetEnableTunnelExtrapolation(boolean value) Set totrueto enable tunnel extrapolation, set tofalseto disable tunnel extrapolation.voidSets the listener to receive current environmental zones notifications.voidSets the listener that notifies when a text notification is available.voidSets the text notification options.voidsetExtrapolationEnabled(boolean value) Sets whether to enable or disable the position extrapolation logic.voidsetGuidanceFrameRate(int value) Frame rate used during guidance.voidSets the listener that receives interpolated locations.voidSets the listener to receive junction view lane assistance notifications.voidsetLocationAccuracyVisualized(boolean value) Sets the halo accuracy visualization of the defaultLocationIndicator.voidSets the listener to receive notifications about low speed zones on the current road.voidsetManeuverArrowsVisible(boolean value) Sets whether to perform maneuver arrow rendering during visual navigation.voidsetManeuverArrowWidthFactor(double value) Sets the factor that multiplies the width of the maneuver arrow defined by thegetMeasureDependentWidth().voidSets the maneuver notification options.booleansetManeuverNotificationTimingOptions(TransportMode transportMode, TimingProfile timingProfile, ManeuverNotificationTimingOptions options) Set timing option values for the combination of transport mode and timing profile.voidSets the listener to receive maneuver view lane assistance notifications.voidsetMeasureDependentWidth(Map<MapMeasure, Double> value) Sets theMapMeasuredependent route and maneuver arrows width in pixels.voidSets the listener that notifies when aMilestonehas been reached or missed.voidSets the listener that notifies current location updates.voidSets the listener that notifies when the off-road destination has been reached.voidsetOffRoadDestinationVisible(boolean value) Sets whether to show a dashed line between the map-matched and the original destination which is off-road.voidSets the listener that notifies about off-road progress.voidsetPassthroughWaypointsHandlingEnabled(boolean value) Set totrueenables handling of passthrough waypoints, set tofalsedisables handling of passthrough waypoints.voidSets the listener to receive post action notifications, such as a charge action at a charging station.voidSets the listener to receive notifications about railway crossings on the current road.voidSets the listener to receive notifications about junction views on the current road.voidSets realistic view warning options that allow to filter realistic views to be passed toRealisticViewWarningListener.voidSets the listener to receive notifications about attributes of the current road.voidSets the listener to receive notifications about road signs on the current road.voidSets road sign warning options that allow to filter road signs to be passed toRoadSignWarningListener.voidSets the listener to receive notifications about the textual attributes of the current road.voidSets the route to navigate.voidSets the listener that notifies when deviation from the route is observed.voidsetRouteDrawOrder(int value) The draw order of the polylines representing the route.voidThe draw order type of the polylines representing the route.voidSets the listener that notifies when a route progress change occurs.voidsetRouteProgressVisible(boolean value) Sets whether to perform route progress coloring ("eat-up") during visual navigation.voidsetRouteVisible(boolean value) Sets whether to perform route rendering during visual navigation.voidSets the listener to receive safety camera warning notifications.voidSets safety camera warning options to be passed toSafetyCameraWarningListener.voidSets the listener to receive notifications about school zones on the current road.voidSets school zone warning options that allow to configure school zone notifications to be passed toSchoolZoneWarningListener.voidSets the listener to receive notifications about the speed limit of the current road.voidSets the listener to receive notifications when a speed limit on a road is exceeded or driving speed is restored back to normal.voidSets the speed warning options.voidSets the listener to receive notifications about the upcoming toll stop.voidSets the transport profile for theNavigator, when no route is present.voidSets the listener to receive notifications about merging traffic to the current road.voidSets merging traffic warning options that allow to configure merging traffic notifications to be passed toTrafficMergeWarningListener.voidsetTrafficOnRoute(TrafficOnRoute value) Sets the traffic information for the current route.voidsetTrafficOnRouteVisible(boolean value) Sets whether to perform rendering of traffic conditions on the route whenRoutevisualization is enabled during visual navigation.voidSets the listener to receive notifications about truck restrictions on the current road.voidSets truck restrictions warning options that allow to filter truck restrictions to be passed toTruckRestrictionsWarningListener.booleansetWarningNotificationDistances(WarningType warningType, WarningNotificationDistances warningNotificationDistances) Set the warning notification distances for the specified warning types.voidstartRendering(MapViewBase mapView) Starts visual navigation rendering.voidStops visual navigation rendering.
-
Constructor Details
-
VisualNavigator
Creates a new instance of this class.
- Throws:
InstantiationErrorException-InstantiationErrorExceptionwhen operation fails.
-
VisualNavigator
Creates a new instance of this class.
- Parameters:
sdkEngine-An SDKEngine instance.
- Throws:
InstantiationErrorException-InstantiationErrorExceptionwhen operation fails.
-
-
Method Details
-
getAvailableLanguagesForManeuverNotifications
Returns the list of languages for maneuver notification currently available in the SDK.
- Returns:
the list of languages for maneuver notification currently available in the SDK.
-
startRendering
Starts visual navigation rendering. A preconfigured current location marker is shown as soon as a location is received. The marker is chosen according to the transport mode specified in the route. If no route is present, the marker is chosen based on the
NavigatorInterface.getTrackingTransportProfile()property. Calling startRendering() changes theMapCamera.getPrincipalPoint()property so that the current position indicator is equal to the value fromCameraBehavior.getNormalizedPrincipalPoint(), in which by default places the principal point slightly at the bottom of the mapview. It is restored to its original value when stopRendering() is called. Note: When rendering is started again for a new map view instance, rendering is automatically stopped on the previous map view instance. Also note that theMapViewBase.getFrameRate()can be lowered to reduce CPU usage, to adjust for tradeoffs between rendering smoothness versus battery consumption.- Parameters:
mapView-The map view on which visual navigation will take place.
-
stopRendering
public void stopRendering()Stops visual navigation rendering. This removes the current location marker. Other settings, like map orientation or camera distance, which may have been altered during rendering are no longer updated.
-
defaultRouteManeuverArrowMeasureDependentWidths
Retrieves a dictionary of default route and maneuver arrow widths as a function of
MapMeasures.- Returns:
A dictionary of default route and maneuver arrow widths as a function of
MapMeasures.
-
getCameraBehavior
Gets the currently set camera behavior.
Setting
nulldisables any camera behavior with the result that the camera does not follow the current location and keeps the last active camera state, i.e., current zoom and tilt. Furthermore, whennullis set map gestures can be used again to freely pan and zoom the map. In opposition, when a camera behavior is defined, then the map cannot be panned and zoomed by the user. The default value is an instance ofFixedCameraBehavior.- Returns:
Camera behavior which defines how the
VisualNavigatorhandles the camera.
-
isRouteVisible
public boolean isRouteVisible()Gets the current state of route rendering during visual navigation.
When enabled, the set
Routewill be rendered as aMapPolylinetogether withMapArrowitems that indicate the next turns. By default, it is enabled. When disabled,MapArrowitems are still rendered. To hide arrows, useVisualNavigatorColorswith transparent color.- Returns:
Routevisibility which defines whether to perform route rendering during visual navigation.
-
setRouteVisible
public void setRouteVisible(boolean value) Sets whether to perform route rendering during visual navigation.
When enabled, the set
Routewill be rendered as aMapPolylinetogether withMapArrowitems that indicate the next turns. By default, it is enabled. When disabled,MapArrowitems are still rendered. To hide arrows, useVisualNavigatorColorswith transparent color.- Parameters:
value-Routevisibility which defines whether to perform route rendering during visual navigation.
-
isRouteProgressVisible
public boolean isRouteProgressVisible()Gets the current state of route progress during visual navigation.
By default, it is enabled.
- Returns:
RouteProgressvisibility which defines whether to perform route progress coloring ("eat-up") during visual navigation.
-
setRouteProgressVisible
public void setRouteProgressVisible(boolean value) Sets whether to perform route progress coloring ("eat-up") during visual navigation.
By default, it is enabled.
- Parameters:
value-RouteProgressvisibility which defines whether to perform route progress coloring ("eat-up") during visual navigation.
-
isManeuverArrowsVisible
public boolean isManeuverArrowsVisible()Gets the current state of maneuver arrow rendering during visual navigation.
By default, it is enabled.
- Returns:
Maneuver arrows visibility which defines whether to perform maneuver arrow rendering during visual navigation.
-
setManeuverArrowsVisible
public void setManeuverArrowsVisible(boolean value) Sets whether to perform maneuver arrow rendering during visual navigation.
By default, it is enabled.
- Parameters:
value-Maneuver arrows visibility which defines whether to perform maneuver arrow rendering during visual navigation.
-
isOffRoadDestinationVisible
public boolean isOffRoadDestinationVisible()Gets the current state of off-road destination visualization during visual navigation.
Note: The dashed line will be drawn only if the original destination is off-road.
- Returns:
Off road destination visibility which defines whether to show a dashed line between the map-matched and the original destination which is off-road. By default it is enabled.
-
setOffRoadDestinationVisible
public void setOffRoadDestinationVisible(boolean value) Sets whether to show a dashed line between the map-matched and the original destination which is off-road.
Note: The dashed line will be drawn only if the original destination is off-road.
- Parameters:
value-Off road destination visibility which defines whether to show a dashed line between the map-matched and the original destination which is off-road. By default it is enabled.
-
isTrafficOnRouteVisible
public boolean isTrafficOnRouteVisible()Gets the current state whether traffic conditions on route should be displayed during visual navigation.
When enabled the route's
MapPolylinewill be enhanced with visualization of the traffic conditions. Colors used for this visualization are defined inVisualNavigatorColors.getTrafficOnRouteColors(). The presented traffic information is either set by the user viaNavigatorInterface.getTrafficOnRoute()or is generated from historical traffic data stored in the map. Note:VisualNavigatordoes not perform automatic traffic data updates. The updated traffic information is available through the [sdk.routing.RoutingEngine.calculate_traffic_on_route] interface. The returnedTrafficOnRoutecould then be used to update [sdk.navigation.NavigatorInterface.traffic_on_route] to refresh the traffic on route visualization. Defaults tofalse.- Returns:
A boolean which defines whether to perform rendering of traffic conditions on the route when
Routevisualization is enabled during visual navigation.
-
setTrafficOnRouteVisible
public void setTrafficOnRouteVisible(boolean value) Sets whether to perform rendering of traffic conditions on the route when
Routevisualization is enabled during visual navigation.When enabled the route's
MapPolylinewill be enhanced with visualization of the traffic conditions. Colors used for this visualization are defined inVisualNavigatorColors.getTrafficOnRouteColors(). The presented traffic information is either set by the user viaNavigatorInterface.getTrafficOnRoute()or is generated from historical traffic data stored in the map. Note:VisualNavigatordoes not perform automatic traffic data updates. The updated traffic information is available through the [sdk.routing.RoutingEngine.calculate_traffic_on_route] interface. The returnedTrafficOnRoutecould then be used to update [sdk.navigation.NavigatorInterface.traffic_on_route] to refresh the traffic on route visualization. Defaults tofalse.- Parameters:
value-A boolean which defines whether to perform rendering of traffic conditions on the route when
Routevisualization is enabled during visual navigation.
-
getCustomLocationIndicator
Gets the currently set
LocationIndicator.If set, the user is responsible for adding and removing the object to/from the mapview. It is important to stop sending location updates to the provided
LocationIndicator, sinceVisualNavigatorwill control its position when rendering is active, i.e., between startRendering() and stopRendering() calls. By default this property isnull, which means the default indicator is used, andVisualNavigatorautomatically adds and removes it to/from the mapview upon startRendering() and stopRendering() calls.- Returns:
Custom location indicator
LocationIndicatorwhichVisualNavigatoruses instead of the default.
-
setCustomLocationIndicator
Sets a custom
LocationIndicator, so thatVisualNavigatoruses the provided one instead of the default.If set, the user is responsible for adding and removing the object to/from the mapview. It is important to stop sending location updates to the provided
LocationIndicator, sinceVisualNavigatorwill control its position when rendering is active, i.e., between startRendering() and stopRendering() calls. By default this property isnull, which means the default indicator is used, andVisualNavigatorautomatically adds and removes it to/from the mapview upon startRendering() and stopRendering() calls.- Parameters:
value-Custom location indicator
LocationIndicatorwhichVisualNavigatoruses instead of the default.
-
getInterpolatedLocationListener
Gets the listener that receives interpolated locations. For example, to pan a second instance of a
MapViewBaseor move additional markers smoothly. The map-matched locations are used if available, otherwise the non-map-matched ones are used instead.For example, to pan a second instance of a
MapViewBaseor move additional markers smoothly. The map-matched locations are used if available, otherwise the non-map-matched ones are used instead. Defaults tonull.- Returns:
Object to receive interpolated locations.
-
isRendering
public boolean isRendering()Returns a value indicating whether visual navigation rendering is enabled.
- Returns:
Returns a value indicating whether visual navigation rendering is enabled.
-
getColors
Gets an object containing colors used to render route progress and maneuver arrow visualization.
Setting a new instance overwrites the default color settings as specified in
VisualNavigatorColors.- Returns:
Object containing colors used to render route progress and maneuver arrow visualization.
-
getMeasureDependentWidth
Gets the
MapMeasuredependent polyline and maneuver arrow width in pixels.It is a dictionary that has keys that are
MapMeasures and values that are width in pixels at thisMapMeasures. This route and maneuver arrows width is multiplied by a pixel_scaleMapViewBase.getPixelScale()before being rendered. The maneuver arrow width is additionally multiplied by a factor configurable withsetManeuverArrowWidthFactor; which by default equals one. The function defined by a dictionary is linearly interpolated between each successive pair of data points. For keys below the lowestMapMeasure, its corresponding value width is used. For keys above the highestMapMeasure, its corresponding value width is used. OnlyMapMeasureof [sdk.mapview.MapMeasure.Kind.ZOOM_LEVEL] type are supported.MapMeasureof other unsupported types will be ignored.measureDependentWidthwith a single entry is equivalent to use of the constant width value of this single entry for allMapMeasures. EmptymeasureDependentWidthis ignored and existing dictionary of width is maintained. The width values should be positive. Dictionary entries with width values less than or equal to 0 are ignored. If route and maneuver arrows were not configured with this property, thenmeasureDependentWidthcontains predefined values chosen to be optimal for different route classes.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
- Returns:
The
measureDependentWidththat defines the route and maneuver arrows width.
-
setMeasureDependentWidth
Sets the
MapMeasuredependent route and maneuver arrows width in pixels.It is a dictionary that has keys that are
MapMeasures and values that are width in pixels at thisMapMeasures. This route and maneuver arrows width is multiplied by a pixel_scaleMapViewBase.getPixelScale()before being rendered. The maneuver arrow width is additionally multiplied by a factor configurable withsetManeuverArrowWidthFactor; which by default equals one. The function defined by a dictionary is linearly interpolated between each successive pair of data points. For keys below the lowestMapMeasure, its corresponding value width is used. For keys above the highestMapMeasure, its corresponding value width is used. OnlyMapMeasureof [sdk.mapview.MapMeasure.Kind.ZOOM_LEVEL] type are supported.MapMeasureof other unsupported types will be ignored.measureDependentWidthwith a single entry is equivalent to use of the constant width value of this single entry for allMapMeasures. EmptymeasureDependentWidthis ignored and existing dictionary of width is maintained. The width values should be positive. Dictionary entries with width values less than or equal to 0 are ignored. If route and maneuver arrows were not configured with this property, thenmeasureDependentWidthcontains predefined values chosen to be optimal for different route classes.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
- Parameters:
value-The
measureDependentWidththat defines the route and maneuver arrows width.
-
getManeuverArrowWidthFactor
public double getManeuverArrowWidthFactor()Gets the factor that multiplies width of the maneuver arrow defined by
getMeasureDependentWidth(). By default it is set to one.The factor should be positive. A value less than or equal to 0 is ignored. By default it is set to one.
- Returns:
A factor of
getMeasureDependentWidth()defining the width of the maneuver arrow.
-
setManeuverArrowWidthFactor
public void setManeuverArrowWidthFactor(double value) Sets the factor that multiplies the width of the maneuver arrow defined by the
getMeasureDependentWidth().The factor should be positive. A value less than or equal to 0 is ignored. By default it is set to one.
- Parameters:
value-A factor of
getMeasureDependentWidth()defining the width of the maneuver arrow.
-
isExtrapolationEnabled
public boolean isExtrapolationEnabled()Gets the current state of the position extrapolation logic.
The predicted location follows the geometry of the route (or road) ahead. By default it is enabled.
- Returns:
Defines whether the position extrapolation logic is enabled or not.
-
setExtrapolationEnabled
public void setExtrapolationEnabled(boolean value) Sets whether to enable or disable the position extrapolation logic. By default enabled.
The predicted location follows the geometry of the route (or road) ahead. By default it is enabled.
- Parameters:
value-Defines whether the position extrapolation logic is enabled or not.
-
getDebugGpxFilePath
Gets the path of the GPX file, is any available, currently being displayed on the map.
Note: This API should be used for debugging purposes only.
- Returns:
Show the contents of a GPX file on the map.
-
setDebugGpxFilePath
Sets the path of a GPX file to be displayed on the map. Setting
nullremoves it from the map.Note: This API should be used for debugging purposes only.
- Parameters:
value-Show the contents of a GPX file on the map.
-
isDebugModeEnabled
public boolean isDebugModeEnabled()Gets the current debug mode state.
- A semi-transparent location marker indicating the map-matched location.
- A gray, semi-transparent location marker indicating the raw (or original) input location.
- A red polyline indicating the most probable path.
- A SVG overlay, on the middle-left of the screen, showing the following:
- IN - Input location: coordinates [bearing] [speed] [accuracy]
- RM - Route-matched location: coordinates bearing (distance-to-raw-location)
- MM - Map-Matched location: coordinates bearing (distance-to-raw-location)
- RM-MM - distance-between-route-and-map-matched-locations
- RP - Route progress: remaining-duration remaining-distance
- SP - Section progress: section-index/sections-count remaining-duration remaining-distance
- MP - Maneuver progress: maneuver-index remaining-duration remaining-distance
- CPU - CPU usage: cpu-usage current-date-time
- MS - Milestone status: section-index MISSED|REACHED when
- RD - Route deviation: last-traveled-section-index last-traveled-section-distance when
- FPS - Frames per second: frames-per-second
Fields between brackets ([]'s) are omitted if not available.
Example:
IN: 53.96880,14.77903 167° 8m/s RM: 53.96880,14.77903 167° (0.0m) MM: 53.96879,14.77903 167° (0.5m) RM-MM: 0.5m RP: 49h0m3s 4302km SP: 0/16 1h2m20s 58km MP: 1 5s 25m CPU: 7% 2024-01-01 13:21:59 MS: 1 REACHED 12:34:22 RD: 2 345m 11:13:55 FPS: 30.0
Note: This API should be used for debugging purposes only.
- Returns:
When enabled, it shows useful information for debugging purposes.
-
setDebugModeEnabled
public void setDebugModeEnabled(boolean value) Sets whether to enable debug mode or not.
- A semi-transparent location marker indicating the map-matched location.
- A gray, semi-transparent location marker indicating the raw (or original) input location.
- A red polyline indicating the most probable path.
- A SVG overlay, on the middle-left of the screen, showing the following:
- IN - Input location: coordinates [bearing] [speed] [accuracy]
- RM - Route-matched location: coordinates bearing (distance-to-raw-location)
- MM - Map-Matched location: coordinates bearing (distance-to-raw-location)
- RM-MM - distance-between-route-and-map-matched-locations
- RP - Route progress: remaining-duration remaining-distance
- SP - Section progress: section-index/sections-count remaining-duration remaining-distance
- MP - Maneuver progress: maneuver-index remaining-duration remaining-distance
- CPU - CPU usage: cpu-usage current-date-time
- MS - Milestone status: section-index MISSED|REACHED when
- RD - Route deviation: last-traveled-section-index last-traveled-section-distance when
- FPS - Frames per second: frames-per-second
Fields between brackets ([]'s) are omitted if not available.
Example:
IN: 53.96880,14.77903 167° 8m/s RM: 53.96880,14.77903 167° (0.0m) MM: 53.96879,14.77903 167° (0.5m) RM-MM: 0.5m RP: 49h0m3s 4302km SP: 0/16 1h2m20s 58km MP: 1 5s 25m CPU: 7% 2024-01-01 13:21:59 MS: 1 REACHED 12:34:22 RD: 2 345m 11:13:55 FPS: 30.0
Note: This API should be used for debugging purposes only.
- Parameters:
value-When enabled, it shows useful information for debugging purposes.
-
isLocationAccuracyVisualized
public boolean isLocationAccuracyVisualized()Gets a boolean indicating if the halo accuracy visualization of the default
LocationIndicatoris rendered or not.Does not affect halo accuracy indicator of the
getCustomLocationIndicator(). IfgetCustomLocationIndicator()is set, then its halo accuracy indicator can be controlled usingLocationIndicator.isAccuracyVisualized().- Returns:
Controls if the halo accuracy visualization of the default
LocationIndicatoris rendered or not.
-
setLocationAccuracyVisualized
public void setLocationAccuracyVisualized(boolean value) Sets the halo accuracy visualization of the default
LocationIndicator.Does not affect halo accuracy indicator of the
getCustomLocationIndicator(). IfgetCustomLocationIndicator()is set, then its halo accuracy indicator can be controlled usingLocationIndicator.isAccuracyVisualized().- Parameters:
value-Controls if the halo accuracy visualization of the default
LocationIndicatoris rendered or not.
-
isDynamicFrameRateEnabled
public boolean isDynamicFrameRateEnabled()Controls whether the number of map updates is dynamically calculated based on the current zoom level. If the zoom level is low, i.e., the camera target distance is high, updates to LocationIndicator, MapCamera and MapPolylines representing the route progress will happen less frequent. It is on by default.
- Returns:
Flag used to enable or disable the dynamic frame rate.
-
setDynamicFrameRateEnabled
public void setDynamicFrameRateEnabled(boolean value) Controls whether the number of map updates is dynamically calculated based on the current zoom level. If the zoom level is low, i.e., the camera target distance is high, updates to LocationIndicator, MapCamera and MapPolylines representing the route progress will happen less frequent. It is on by default.
- Parameters:
value-Flag used to enable or disable the dynamic frame rate.
-
getGuidanceFrameRate
public int getGuidanceFrameRate()Frame rate used during guidance. Default is 30fps.
- Returns:
Frame rate used during guidance.
-
setGuidanceFrameRate
public void setGuidanceFrameRate(int value) Frame rate used during guidance. Default is 30fps.
- Parameters:
value-Frame rate used during guidance.
-
getRouteDrawOrder
public int getRouteDrawOrder()The draw order of the polylines representing the route. For more details see
MapPolyline.getDrawOrder(). The default is 0.- Returns:
The draw order of the polylines representing the route.
-
setRouteDrawOrder
public void setRouteDrawOrder(int value) The draw order of the polylines representing the route. For more details see
MapPolyline.getDrawOrder(). The default is 0.- Parameters:
value-The draw order of the polylines representing the route.
-
getRouteDrawOrderType
The draw order type of the polylines representing the route. For more details see
MapPolyline.getDrawOrderType(). The default isDrawOrderType.MAP_SCENE_ADDITION_ORDER_DEPENDENT.- Returns:
The draw order type of the polylines representing the route.
-
setRouteDrawOrderType
The draw order type of the polylines representing the route. For more details see
MapPolyline.getDrawOrderType(). The default isDrawOrderType.MAP_SCENE_ADDITION_ORDER_DEPENDENT.- Parameters:
value-The draw order type of the polylines representing the route.
-
getManeuver
Returns maneuver at the given index.
- Specified by:
getManeuverin interfaceNavigatorInterface- Parameters:
index-The index of maneuver requested.
- Returns:
The maneuver if it exists or otherwise
null.
-
repeatLastManeuverNotification
public void repeatLastManeuverNotification()Call of this function is used to trigger the navigator to repeat the last maneuver notification based on the current position.
- Specified by:
repeatLastManeuverNotificationin interfaceNavigatorInterface
-
calculateRemainingDistanceInMeters
This method calculates the distance between the current position and given coordinates. The coordinates must be on the polyline.
- Specified by:
calculateRemainingDistanceInMetersin interfaceNavigatorInterface- Parameters:
coordinates-The geographic coordinates of the location.
- Returns:
distance in meters or null if given coordinates are not on route or given coordinates were already traversed.
-
setCustomOption
This method sets custom options that controls navigator behavior. Unsupported options are silently ignored. Undocumented options can change their meaning without going through deprecation process.
- Specified by:
setCustomOptionin interfaceNavigatorInterface- Parameters:
key-Option name
value-New option value
-
onLocationUpdated
Called each time a new location is available. In a navigation context while using the
NavigatororVisualNavigator, it's required to set theLocation.timeparameter for eachLocationobject so that the HERE SDK can map-match the locations properly. If theLocation.timeparameter is missing, the location will be ignored. For navigation, it is also recommended to provide thebearingandspeedparameters for eachLocationobject. Invoked on the main thread.- Specified by:
onLocationUpdatedin interfaceLocationListener- Parameters:
location-Current location.
-
getRoute
Gets the route that is being navigated.
Gets and sets the route that is being navigated. If not set, only the current location information will be provided through
NavigableLocationListener. If set, both route progress (RouteProgressListener) and route deviation (RouteDeviationListener) will receive notifications on updates. A route may fail to be set if it is generated by an incompatible engine, in which case the operation has no effect.- Specified by:
getRoutein interfaceNavigatorInterface- Returns:
The route to navigate.
-
setRoute
Sets the route to navigate.
Gets and sets the route that is being navigated. If not set, only the current location information will be provided through
NavigableLocationListener. If set, both route progress (RouteProgressListener) and route deviation (RouteDeviationListener) will receive notifications on updates. A route may fail to be set if it is generated by an incompatible engine, in which case the operation has no effect.- Specified by:
setRoutein interfaceNavigatorInterface- Parameters:
value-The route to navigate.
-
getTrackingTransportProfile
Gets the transport profile for the
Navigator, when no route is present.Properly setting the transport profile optimizes the navigation experience, and improves resource consumption. For example, a
TransportProfilecan be defined with aVehicleProfile. A vehicle profile can have several parameters such asVehicleTypeto set the source of information describing the vehicle. The default is aVehicleType.CARprofile.Currently used members of
TransportProfileVehicleType: Sets the transport mode.- From
vehicleProfile:grossWeightInKilograms: Required for truck related speed information.heightInCentimeters: Required for truck related speed information.widthInCentimeters: Additional truck definition for more specific truck speed information.lengthInCentimeters: Additional truck definition for more specific truck speed information.
- Specified by:
getTrackingTransportProfilein interfaceNavigatorInterface- Returns:
Defines the transport profile for the
Navigator, when no route is present.
-
setTrackingTransportProfile
Sets the transport profile for the
Navigator, when no route is present.Properly setting the transport profile optimizes the navigation experience, and improves resource consumption. For example, a
TransportProfilecan be defined with aVehicleProfile. A vehicle profile can have several parameters such asVehicleTypeto set the source of information describing the vehicle. The default is aVehicleType.CARprofile.Currently used members of
TransportProfileVehicleType: Sets the transport mode.- From
vehicleProfile:grossWeightInKilograms: Required for truck related speed information.heightInCentimeters: Required for truck related speed information.widthInCentimeters: Additional truck definition for more specific truck speed information.lengthInCentimeters: Additional truck definition for more specific truck speed information.
- Specified by:
setTrackingTransportProfilein interfaceNavigatorInterface- Parameters:
value-Defines the transport profile for the
Navigator, when no route is present.
-
getRouteProgressListener
Gets the listener that notifies when a route progress change occurs.
Route progress notifications only occurs if the route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getRouteProgressListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about navigation route progress.
-
getRouteDeviationListener
Gets the listener that notifies when deviation from the route is observed.
Route deviation notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getRouteDeviationListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about deviations from the route if any occurs.
-
getEventTextListener
Gets the listener that notifies when a text notification is available.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user. Note: In order to receive the text notification emitted for the traffic merge warner, whenTrafficMergeWarningOptions.enable_text_notificationhas been enabled, thesdk.navigation.EventTextListenermust be enabled as well.- Specified by:
getEventTextListenerin interfaceNavigatorInterface- Returns:
Object to receive text notifications when they are available.
-
getMilestoneStatusListener
Gets the listener that notifies when a
Milestonehas been reached or missed.It informs on all waypoints (passed or missed) that are of type
MilestoneType.STOPOVERbut excludes the starting waypoint. Waypoints of typeMilestoneType.PASSTHROUGHare excluded, by default, but can be included viaNavigatorInterface.isPassthroughWaypointsHandlingEnabled(). Milestone status notifications only occurs if a route has been set. Settingnullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getMilestoneStatusListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about the arrival at each
Milestoneor missing it.
-
getDestinationReachedListener
Gets the listener that notify when the destination has been reached.
Destination reached notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getDestinationReachedListenerin interfaceNavigatorInterface- Returns:
Object to receive the notification about the arrival at the destination.
-
getSpeedWarningListener
Gets the listener to receive notifications when a speed limit on a road is exceeded or driving speed is restored back to normal.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getSpeedWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications when a speed limit on a road is exceeded or driving speed is restored back to normal.
-
getManeuverViewLaneAssistanceListener
Gets the listener to receive maneuver view lane assistance notifications.
Maneuver view lane assistance notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getManeuverViewLaneAssistanceListenerin interfaceNavigatorInterface- Returns:
Object to receive maneuver view lane assistance notifications.
-
getCurrentSituationLaneAssistanceViewListener
@Nullable public CurrentSituationLaneAssistanceViewListener getCurrentSituationLaneAssistanceViewListener()Gets the listener to receive current situation lane assistance view notifications.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getCurrentSituationLaneAssistanceViewListenerin interfaceNavigatorInterface- Returns:
Object to receive current situation lane assistance view notifications.
-
getEnvironmentalZoneWarningListener
Gets the listener to receive current environmental zones notifications.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getEnvironmentalZoneWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notification on approaching environmental zones.
-
getJunctionViewLaneAssistanceListener
Gets the listener to receive junction view lane assistance notifications.
Junction view lane assistance notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getJunctionViewLaneAssistanceListenerin interfaceNavigatorInterface- Returns:
Object to receive junction view lane assistance notifications.
-
getSafetyCameraWarningListener
Gets the listener to receive safety camera warning notifications.
If a listener is present, notifications about safety speed cameras will be also sent via
SafetyCameraWarningListener. Settingnullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getSafetyCameraWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive safety camera warner notifications.
-
getSafetyCameraWarningOptions
Gets safety camera warning options to be passed to
SafetyCameraWarningListener.These options allow the enabling or disabling the text notification for the warner.
- Specified by:
getSafetyCameraWarningOptionsin interfaceNavigatorInterface- Returns:
Safety camera warning options to be passed to
SafetyCameraWarningListener.
-
getDangerZoneWarningListener
Gets the listener to receive current danger zones notifications.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getDangerZoneWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notification on approaching danger zones.
-
getTruckRestrictionsWarningListener
Gets the listener to receive notifications about truck restrictions on the current road.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getTruckRestrictionsWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about truck restrictions on the current road.
-
getTruckRestrictionsWarningOptions
Gets truck restrictions warning options that allow to filter truck restrictions to be passed to
TruckRestrictionsWarningListener.- Specified by:
getTruckRestrictionsWarningOptionsin interfaceNavigatorInterface- Returns:
Truck restrictions warning options that allow to filter truck restrictions to be passed to
TruckRestrictionsWarningListener.
-
getPostActionListener
Gets the listener to receive post action notifications, such as a charge action at a charging station.
Post actions notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getPostActionListenerin interfaceNavigatorInterface- Returns:
Object to receive post action notifications, such as a charge action at a charging station.
-
getSpeedLimitListener
Gets the listener to receive notifications about the speed limit of the current road.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getSpeedLimitListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about the speed limit of the current road.
-
getRoadTextsListener
Gets the listener to receive notifications about the textual attributes of the current road.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getRoadTextsListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about the textual attributes of the current road.
-
getRoadAttributesListener
Gets the listener to receive notifications about attributes of the current road.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getRoadAttributesListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about attributes of the current road.
-
getRoadSignWarningListener
Gets the listener to receive notifications about road signs on the current road.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getRoadSignWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about road signs on the current road.
-
getRoadSignWarningOptions
Gets road sign warning options that allow to filter road signs to be passed to
RoadSignWarningListener.- Specified by:
getRoadSignWarningOptionsin interfaceNavigatorInterface- Returns:
Road sign warning options that allow to filter road sings to be passed to
RoadSignWarningListener.
-
getSchoolZoneWarningListener
Gets the listener to receive notifications about school zones on the current road.
Setting
nullvalue to the listener will unset the listener. school zones on the current road. It returnsnullwhen no listener is set by an user.- Specified by:
getSchoolZoneWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about school zones on the current road.
-
getSchoolZoneWarningOptions
Gets school zone warning options that allow to configure school zone notifications to be passed to
SchoolZoneWarningListener.It allow to configure school zone notifications to be passed to
SchoolZoneWarningListener.- Specified by:
getSchoolZoneWarningOptionsin interfaceNavigatorInterface- Returns:
School zone warning options
-
getRealisticViewWarningListener
Gets the listener to receive notifications about junction views on the current road.
Setting
nullvalue to the listener will unset the listener. This feature requires a map version greater or equal to 67 in order to function properly. It returnsnullwhen no listener is set by an user.- Specified by:
getRealisticViewWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about junction views on the current road.
-
getRealisticViewWarningOptions
Gets realistic view warning options that allow to filter realistic views to be passed to
RealisticViewWarningListener.It allow to filter realistic views to be passed to
RealisticViewWarningListener.- This feature requires a map version greater or equal to 67 in order to function properly.
- Specified by:
getRealisticViewWarningOptionsin interfaceNavigatorInterface- Returns:
Realistic view warning options.
-
getBorderCrossingWarningListener
Gets the listener to receive notifications about border crossings on the current road.
Border crossing notifications are given only if a route is present. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getBorderCrossingWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about border crossings on the current road.
-
getBorderCrossingWarningOptions
Gets border crossing warning options to be passed to
BorderCrossingWarningListener.allow the filtering of the border crossing warnings received and set the notification distances.
- Specified by:
getBorderCrossingWarningOptionsin interfaceNavigatorInterface- Returns:
Border crossing warning options to be passed to
BorderCrossingWarningListener. These options
-
getTollStopWarningListener
Gets the listener to receive notifications about the the upcoming toll stop.
Setting
nullvalue to the listener will unset the listener. This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.- Specified by:
getTollStopWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive information on the upcoming toll stop.
-
getRailwayCrossingWarningListener
Gets the listener to receive notifications about railway crossings on the current road.
Railway crossing notifications are given regardless if a route is set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getRailwayCrossingWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about railway crossings on the current road.
-
getLowSpeedZoneWarningListener
Gets the listener to receive notifications about low speed zones on the current road.
Low speed zone notifications are given regardless if a route is set. This listener is currently available only for Japan. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getLowSpeedZoneWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about low speed zones on the current road.
-
getTrafficMergeWarningListener
Gets the listener to receive notifications about merging traffic to the current road.
Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getTrafficMergeWarningListenerin interfaceNavigatorInterface- Returns:
Object to receive notifications about merging traffic to the current road.
-
getTrafficMergeWarningOptions
Gets merging traffic warning options that allow to configure merging traffic notifications to be passed to
TrafficMergeWarningListener.- Specified by:
getTrafficMergeWarningOptionsin interfaceNavigatorInterface- Returns:
Merging traffic warning options that allow to configure merging traffic notifications to be passed to
TrafficMergeWarningListener.
-
getOffRoadDestinationReachedListener
Gets the listener that notifies when the off-road destination has been reached.
Off-road destination reached notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getOffRoadDestinationReachedListenerin interfaceNavigatorInterface- Returns:
Object to receive the notification about the arrival at the off-road destination.
-
getOffRoadProgressListener
Gets the listener that notifies about off-road progress.
Off-road progress notifications only occurs if a route has been set. Setting
nullvalue to the listener will unset the listener. It returnsnullwhen no listener is set by an user.- Specified by:
getOffRoadProgressListenerin interfaceNavigatorInterface- Returns:
Object to receive the notification about the off-road progress.
-
getManeuverNotificationOptions
Gets the maneuver notification options.
Notifications are only available if a route is present.
- Specified by:
getManeuverNotificationOptionsin interfaceNavigatorInterface- Returns:
Options used for maneuver notifications.
-
getEventTextOptions
Gets the text notification options.
Notifications are only available if a route is present.
- Specified by:
getEventTextOptionsin interfaceNavigatorInterface- Returns:
Options used for text notifications.
-
getSpeedWarningOptions
Gets the speed warning options.
- Specified by:
getSpeedWarningOptionsin interfaceNavigatorInterface- Returns:
Options used for the speed warning feature.
-
isEnableTunnelExtrapolation
public boolean isEnableTunnelExtrapolation()Return
trueif tunnel extrapolation is enabled otherwisefalse.By default the tunnel extrapolation is enabled.
- Specified by:
isEnableTunnelExtrapolationin interfaceNavigatorInterface- Returns:
Defines whether to enable or disable tunnel extrapolation.
-
setEnableTunnelExtrapolation
public void setEnableTunnelExtrapolation(boolean value) Set to
trueto enable tunnel extrapolation, set tofalseto disable tunnel extrapolation.By default the tunnel extrapolation is enabled.
- Specified by:
setEnableTunnelExtrapolationin interfaceNavigatorInterface- Parameters:
value-Defines whether to enable or disable tunnel extrapolation.
-
isPassthroughWaypointsHandlingEnabled
public boolean isPassthroughWaypointsHandlingEnabled()Return
trueif handling of passthrough waypoints is enabled, otherwise -false.By default the handling of passthrough waypoints is disabled.
- Specified by:
isPassthroughWaypointsHandlingEnabledin interfaceNavigatorInterface- Returns:
Defines whether to enable or disable handling of passthrough waypoints.
-
setPassthroughWaypointsHandlingEnabled
public void setPassthroughWaypointsHandlingEnabled(boolean value) Set to
trueenables handling of passthrough waypoints, set tofalsedisables handling of passthrough waypoints.By default the handling of passthrough waypoints is disabled.
- Specified by:
setPassthroughWaypointsHandlingEnabledin interfaceNavigatorInterface- Parameters:
value-Defines whether to enable or disable handling of passthrough waypoints.
-
getTrafficOnRoute
Gets the traffic information for the current route.
This impacts
RouteProgressupdates as the duration of theSectionProgressmight change. However, the remaining distance and the route geometry will remain unchanged.- Specified by:
getTrafficOnRoutein interfaceNavigatorInterface- Returns:
Traffic information for the current route.
-
setTrafficOnRoute
Sets the traffic information for the current route.
This impacts
RouteProgressupdates as the duration of theSectionProgressmight change. However, the remaining distance and the route geometry will remain unchanged.- Specified by:
setTrafficOnRoutein interfaceNavigatorInterface- Parameters:
value-Traffic information for the current route.
-