Package com.tomtom.sdk.maps.display.route

Types

Link copied to clipboard
class Instruction(    val routeOffset: Distance = Distance.ZERO,     val length: Distance = Distance.ofMeters(DEFAULT_MANEUVER_LENGTH),     val combineWithNext: Boolean = false,     val startPointIndex: Int = 0)

Represents an instruction arrow on a route.

Link copied to clipboard
fun interface OnRouteClickListener

Interface for notifying about the Route being clicked.

Link copied to clipboard
class Route

A Route representation which can be added and displayed on the map.

Link copied to clipboard
interface RouteController

Controls Route-specific features on the map. Allows Route management and the user interactions with the Route.

Link copied to clipboard
class RouteNotFoundException(routeId: UniqueId) : RuntimeException

Exception thrown when a Route with the given routeId cannot be found on the map.

Link copied to clipboard
data class RouteOptions(    val geometry: List<GeoCoordinate>,     val color: Color = DEFAULT_COLOR,     val outlineWidth: Double = DEFAULT_OUTLINE_WIDTH,     val widths: List<WidthByZoom> = DEFAULT_WIDTHS_BY_ZOOM_LEVELS,     val visible: Boolean = true,     val progress: Distance = Distance.ZERO,     val instructions: List<Instruction> = emptyList(),     val tag: String? = null,     val departureMarkerVisible: Boolean = false,     val destinationMarkerVisible: Boolean = false,     val followable: Boolean = false)

Configures options for a Route representation which can be added and displayed on the map. See TomTomMap.addRoute(routeOptions: RouteOptions).

Link copied to clipboard
data class WidthByZoom(val width: Double, val zoom: Double = DEFAULT_ZOOM_LEVEL)

Represents a pair of width for the given zoom level.