RouteOptions
Configures options for a Route representation which can be added and displayed on the map. See TomTomMap.addRoute(routeOptions: RouteOptions).
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
Geometry of the Route.
Color of the route tube.
Width of the route outline in density-independent pixels (dp).
Widths of the route tube for different zoom levels. If the same width should be applied for all zoom levels, then the zoom value can be skipped in the WidthByZoom initialization.
Determines the visibility of the Route.
Sets the route progress. The internal map mechanism automatically renders the driven route section in a slightly different color which brings a pleasant user experience.
List of Instruction for maneuvers along the Route.
Optional holder for custom extra information about the requested Route.
Determines the visibility of the departure marker.
Determines the visibility of the destination marker.
Determines whether this Route is followable or not.
A followable route is eligible to be followed by CameraTrackingMode.FOLLOW_ROUTE. Only one Route can be followed at a time. When newly added route is marked as followable, the previous one stops being followable.
Image that will be used as the departure marker pin. If you pass null
, the default image is used.
Image that will be used as the destination marker pin. If you pass null
, the default image is used.