RouteMapObject | iOS SDK | Urbi Documentation

RouteMapObject

Route object on the map.

Extends: MapObject
public convenience init(
    route: TrafficRoute,
    isActive: Bool,
    index: RouteIndex,
    displayFlags: RouteMapObjectDisplayFlagOptionSet? = nil,
    calloutLabelFlags: RouteMapObjectCalloutLabelFlagOptionSet? = nil,
    calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
    permanentDisplayFlags: RouteMapObjectPermanentDisplayFlagOptionSet? = nil
)
Parameters
Properties
StatefulChannel<RouteMapObjectDisplayFlagOptionSet?>

A set of flags for displaying different parts of the route. If not specified, the display logic based on the activity status of the route is used.

A set of flags for displaying different parts of the route. If not specified, the display logic based on the activity status of the route is used.

StatefulChannel<RouteMapObjectPermanentDisplayFlagOptionSet?>

A set of flags to prevent different parts of the route from being hidden from the map when you update the distance traveled along the route. If not set, all route elements that fall within the non-displayed part of the route are hidden from the map when you update the distance traveled along the route.

A set of flags to prevent different parts of the route from being hidden from the map when you update the distance traveled along the route. If not set, all route elements that fall within the non-displayed part of the route are hidden from the map when you update the distance traveled along the route.

StatefulChannel<Bool>

Route activity status.

Route activity status.

Route index in the route editor.

StatefulChannel<RouteDistance>

Distance traveled along the route.

Distance traveled along the route.

StatefulChannel<RouteMapObjectPassedDistanceVisualization>
StatefulChannel<[CalloutMapPosition]>

Route callout position.

Route callout position.

StatefulChannel<RouteMapObjectCalloutLabelFlagOptionSet?>

A set of flags to display the contents of the route's callouts. If not set, then for the active route both route time and its length are displayed, and for inactive routes only the travel time is displayed.

A set of flags to display the contents of the route's callouts. If not set, then for the active route both route time and its length are displayed, and for inactive routes only the travel time is displayed.

StatefulChannel<RouteMapObjectCalloutLabelDisplayMode>

Mode of displaying values in the route's callouts. By default, values are displayed as absolute magnitudes.

Mode of displaying values in the route's callouts. By default, values are displayed as absolute magnitudes.

StatefulChannel<[LanesCalloutMapPosition]>

Lane callouts positions. Only actual positions are returned for the current distance traveled along the route and only if the source, in which the object is placed, is working in navigation mode.

Lane callouts positions. Only actual positions are returned for the current distance traveled along the route and only if the source, in which the object is placed, is working in navigation mode.