Waypoint

data class Waypoint(val id: RouteStopId, val place: Place, val navigableCoordinates: List<GeoPoint>, val routeOffset: Distance, val roadSide: RoadSide? = null, val arrivalEnergy: Energy? = null, val sourceType: RouteStop.SourceType = RouteStop.SourceType.UserDefined, val chargingInformation: ChargingInformation? = null) : RouteStop

Represents a point that the route must visit between departure and destination.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun Waypoint(id: RouteStopId, place: Place, navigableCoordinates: List<GeoPoint>, routeOffset: Distance, roadSide: RoadSide? = null, arrivalEnergy: Energy? = null, sourceType: RouteStop.SourceType = RouteStop.SourceType.UserDefined, chargingInformation: ChargingInformation? = null)

Properties

Link copied to clipboard
open override val arrivalEnergy: Energy? = null

The level of energy expected at arrival. Optional, present only for electric vehicles if electric consumption is specified in the routing request.

Link copied to clipboard
open override val chargingInformation: ChargingInformation? = null

Information on how much to charge at a charging station. Optional, will only be present if this route point is a charging stop in an EV route.

Link copied to clipboard
open override val id: RouteStopId

The id that matches a corresponding com.tomtom.sdk.routing.common.options.ItineraryPointId in the routing request if this route stop was requested by the user.

Link copied to clipboard
open override val navigableCoordinates: List<GeoPoint>

Coordinates which represent the navigable points of this route stop.

Link copied to clipboard
open override val place: Place

Place associated with this route stop.

Link copied to clipboard
open override val roadSide: RoadSide? = null

The side of the road at which the route point is located.

Link copied to clipboard
open override val routeOffset: Distance

The driving distance from the start of the route to this route stop.

Link copied to clipboard
open override val sourceType: RouteStop.SourceType

Specifies the reason why the route point was added to the route.