RouteOptions
Configures options for a Route representation which can be added and displayed on the map. See TomTomMap.addRoute(routeOptions: RouteOptions).
Constructors
Properties
Determines the visibility of the instructions on route. By default, it's set to true.
This specifies where the departureMarkerPinImage is located. If you pass null
, departure marker will be shown on the first point of the geometry.
Image that will be used as the departure marker pin. If you pass null
, the default image is used.
Determines the visibility of the departure marker.
This specifies where the destinationMarkerPinImage is located. If you pass null
, the departure marker is shown on the last point of the geometry.
Image that will be used as the destination marker pin. If you pass null
, the default image is used.
Determines the visibility of the destination marker.
List of Instruction for maneuvers along the Route.
Determines whether this Route is followable or not.
Width of the route outline in density-independent pixels (dp).
a list of Distance instances that represent the offset along the route for each point in the route's geometry. These offsets help in positioning instruction arrows and determining route progress. The n-th element in routeOffset
represents the distance from the start of the route to the n-th point in the geometry. If not explicitly set, routeOffset
is derived from the distances between geometry points during the construction of RouteOptions
.
Information about sections on the route.
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.