RouteStop

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

Represents a predetermined point on a route that is used as a reference point for navigation - Origin, Destination, Waypoint.

RouteStop objects are received as part of the route response from the route planning API. RouteStop is added to the route response because either the location was requested by the user or it was automatically generated by the system (see SourceType).

Constructors

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

Types

Link copied to clipboard
value class SourceType

Specifies why a RouteStop was added to the route.

Properties

Link copied to clipboard
val arrivalEnergy: Energy? = null

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

Link copied to clipboard

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

The ID that matches a corresponding ItineraryPointId in the routing request if this route stop was requested by the user.

Link copied to clipboard

Coordinates which represent the navigable points of this route stop.

Link copied to clipboard

Place associated with this route stop.

Link copied to clipboard
val roadSide: RoadSide? = null

The side of the road at which the route point is located. Null if the side of the road is unknown or irrelevant.

Link copied to clipboard

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

Link copied to clipboard

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

Functions

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

Creates a copy of this RouteStop object, with the option to modify some of its properties.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this RouteStop object is structurally equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object, which allows it to be used in hash-based collections.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this RouteStop object.