isTrafficOnRouteVisible property

bool isTrafficOnRouteVisible

A boolean which defines whether to perform rendering of traffic conditions on the route when Route visualization is enabled during visual navigation. When enabled the route's MapPolyline will be enhanced with visualization of the traffic conditions. Colors used for this visualization are defined in VisualNavigatorColors.trafficOnRouteColors. The presented traffic information is either set by the user via NavigatorInterface.trafficOnRoute or is generated from historical traffic data stored in the map. Note: VisualNavigator does not perform automatic traffic data updates. The updated traffic information is available through the sdk.routing.RoutingEngine.calculate_traffic_on_route interface. The returned TrafficOnRoute could then be used to update sdk.navigation.NavigatorInterface.traffic_on_route to refresh the traffic on route visualization. Defaults to false. Gets the current state whether traffic conditions on route should be displayed during visual navigation.

Implementation

bool get isTrafficOnRouteVisible;
void isTrafficOnRouteVisible=(bool value)

A boolean which defines whether to perform rendering of traffic conditions on the route when Route visualization is enabled during visual navigation. When enabled the route's MapPolyline will be enhanced with visualization of the traffic conditions. Colors used for this visualization are defined in VisualNavigatorColors.trafficOnRouteColors. The presented traffic information is either set by the user via NavigatorInterface.trafficOnRoute or is generated from historical traffic data stored in the map. Note: VisualNavigator does not perform automatic traffic data updates. The updated traffic information is available through the sdk.routing.RoutingEngine.calculate_traffic_on_route interface. The returned TrafficOnRoute could then be used to update sdk.navigation.NavigatorInterface.traffic_on_route to refresh the traffic on route visualization. Defaults to false. Sets whether to perform rendering of traffic conditions on the route when Route visualization is enabled during visual navigation.

Implementation

set isTrafficOnRouteVisible(bool value);