Package-level declarations

Types

Link copied to clipboard
value class ComputedAs

Determines if the route was computed as primary with regards to the given cost model, or if it is a path alternative, meaning a distinct path depending on the previous computed routes.

Link copied to clipboard
abstract class Consumption

Represents a consumed or remaining amount of fuel or electric energy.

Link copied to clipboard
data class Destination(val id: RouteStopId, val place: <Error class: unknown class>, val navigableCoordinates: List<<Error class: unknown class>>, val routeOffset: <Error class: unknown class>, val roadSide: RoadSide? = null, val arrivalEnergy: <Error class: unknown class>? = null, val sourceType: RouteStop.SourceType = RouteStop.SourceType.UserDefined, val chargingInformation: <Error class: unknown class>? = null) : RouteStop

Represents the destination of the route.

Link copied to clipboard

Indicates driving side at the point of the maneuver.

Link copied to clipboard
data class ForkPoint(val forkingRouteId: RouteId, val location: <Error class: unknown class>)

Represents information about the fork point.

Link copied to clipboard
data class Origin(val id: RouteStopId, val place: <Error class: unknown class>, val navigableCoordinates: List<<Error class: unknown class>>, val routeOffset: <Error class: unknown class>, val roadSide: RoadSide? = null, val arrivalEnergy: <Error class: unknown class>? = null, val sourceType: RouteStop.SourceType = RouteStop.SourceType.UserDefined, val chargingInformation: <Error class: unknown class>? = null) : RouteStop

Represents the origin of the route.

Link copied to clipboard
value class PlanningReason

Represents the planning reason returned from the route planner.

Link copied to clipboard

Indicates the side of the road at which a RouteStop is located.

Link copied to clipboard
data class Route(val id: RouteId, val summary: Summary, val legs: List<RouteLeg>, val routeStops: List<RouteStop>, val sections: Sections, val modificationHistory: RouteModificationHistory, val forkPoints: List<ForkPoint> = emptyList(), val incrementEndOffset: <Error class: unknown class> = Distance.ZERO, val computedAs: ComputedAs = ComputedAs.Primary, val routePoints: List<RoutePoint> = emptyList(), val planningReason: PlanningReason = PlanningReason.Requested)

The route class contains the route to be navigated, including geometry and generated guidance messages.

Link copied to clipboard
value class RouteId(val value: <Error class: unknown class> = UniqueId())

A unique identifier of a Route.

Link copied to clipboard
data class RouteLeg(val points: List<<Error class: unknown class>>, val instructions: List<Instruction>, val summary: Summary, val mapReferences: <Error class: unknown class>? = null)

Represents information about a part of a Route, made up of a list of GeoPoint points. Contains a list of Instructions for all the maneuvers along the route leg.

Link copied to clipboard
data class RouteModificationHistory(val creation: RouteTimestamp, val lastUpdate: RouteTimestamp = creation)

Information about the route creation and the last update.

Link copied to clipboard
data class RoutePoint(val coordinate: <Error class: unknown class>, val routeOffset: <Error class: unknown class>, val travelTime: <Error class: unknown class>)

Represents route GeoPoint together with its distance offset along the route and estimated travel time.

Link copied to clipboard
interface RouteStop

Represents a point that the route must visit.

Link copied to clipboard
value class RouteStopId(val value: UUID = UUID.randomUUID())

A unique identifier, used for matching RouteStop with ItineraryPoint.

Link copied to clipboard
data class RouteTimestamp(val timestampInMillis: Long, val timeWithZone: Calendar)

Information about route creation or modification time.

Link copied to clipboard
class Segment(val start: RoutePoint, val end: RoutePoint)

Represents a line between two RoutePoint.

Link copied to clipboard
data class Signpost(val exitNumber: TextWithPhonetics? = null, val exitName: TextWithPhonetics? = null, val towardName: TextWithPhonetics? = null)

The Signpost class contains information about the signpost for the Instruction.

Link copied to clipboard
data class Summary(val length: <Error class: unknown class>, val travelTime: <Error class: unknown class>, val trafficDelay: <Error class: unknown class> = Duration.ZERO, val trafficLength: <Error class: unknown class> = Distance.ZERO, val departureTimeWithZone: Calendar, val arrivalTimeWithZone: Calendar, val consumptionForWholeLength: Consumption? = null, val consumptionUpToReachableOffset: Consumption? = null, val remainingBudget: Consumption? = null, val reachableOffset: <Error class: unknown class>? = null)

The route summary contains the high-level route data.

Link copied to clipboard

Indicates a payment type accepted for a toll.

Link copied to clipboard
data class Waypoint(val id: RouteStopId, val place: <Error class: unknown class>, val navigableCoordinates: List<<Error class: unknown class>>, val routeOffset: <Error class: unknown class>, val roadSide: RoadSide? = null, val arrivalEnergy: <Error class: unknown class>? = null, val sourceType: RouteStop.SourceType = RouteStop.SourceType.UserDefined, val chargingInformation: <Error class: unknown class>? = null) : RouteStop

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

Functions

Link copied to clipboard
fun RoutePoint.angleTo(that: <Error class: unknown class>): <Error class: unknown class>

Calculates the angle (bearing) between this RoutePoint and the GeoPoint given as an argument.

Link copied to clipboard
fun RoutePoint.distanceTo(that: <Error class: unknown class>): <Error class: unknown class>

Calculates the geographic distance from this RoutePoint.coordinate to the GeoPoint given as an argument.

Link copied to clipboard
fun List<RoutePoint>.segmentForDistance(distanceAlongRoute: <Error class: unknown class>): Segment

Finds Segment at given distance along the route using binary search.