ru.dgis.sdk.map.RouteMapObject | Android SDK | 2GIS Documentation
Android SDK

RouteMapObject

Route object on the map.

RouteMapObject(
	trafficRoute: TrafficRoute,
	isActive: Boolean,
	index: RouteIndex,
	displayFlags: EnumSet?<RouteMapObjectDisplayFlag> = null,
	calloutLabelFlags: EnumSet?<RouteMapObjectCalloutLabelFlag> = null,
	calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.ABSOLUTE_VALUES,
	permanentDisplayFlags: EnumSet?<RouteMapObjectPermanentDisplayFlag> = null
)
Parameters
Properties

Set of flags to display various parts of the route. If not specified, display logic based on the activity status of the route is used.

Set of flags to display various parts of the route. If not specified, display logic based on the activity status of the route is used.

Set of flags to prevent various parts of the route from being hidden from the map when updating the distance traveled along the route. If not specified, then when updating the distance traveled along the route, all route elements that fall into the undisplayed part of the route are hidden from the map.

Set of flags to prevent various parts of the route from being hidden from the map when updating the distance traveled along the route. If not specified, then when updating the distance traveled along the route, all route elements that fall into the undisplayed part of the route are hidden from the map.

Route activity status.

Route activity status.

Route index in the route editor.

Distance traveled along the route.

Distance traveled along the route.

Route callout position.

Set of flags for displaying the contents of the route callouts. If not specified, both the time of movement along the route and its length are displayed for the active route, and only the time of movement for inactive routes.

Set of flags for displaying the contents of the route callouts. If not specified, both the time of movement along the route and its length are displayed for the active route, and only the time of movement for inactive routes.

Mode for displaying values in route callouts. By default, values are displayed as absolute values.

Mode for displaying values in route callouts. By default, values are displayed as absolute values.

Lane callout positions. Only relevant positions are returned for the current distance traveled along the route, and only if the source where the object is placed is in navigation mode.

Lane callout positions. Only relevant positions are returned for the current distance traveled along the route, and only if the source where the object is placed is in navigation mode.