DepartureInstruction

data class DepartureInstruction(    val id: UniqueId = UniqueId(),     val routeOffset: Distance,     val travelTime: Duration,     val maneuverPoint: GeoCoordinate,     val drivingSide: DrivingSide,     val isPossibleToCombineWithNext: Boolean,     val announcements: List<Announcement> = emptyList(),     val previousSignificantRoad: RoadInformation? = null,     val nextSignificantRoad: RoadInformation? = null,     val routePath: List<RouteCoordinate> = emptyList(),     val intersectionName: TextWithPhonetics? = null,     val signpost: Signpost? = null,     val landmark: Landmark? = null,     val startPointIndex: Int = 0,     val sideStreetOffset: Distance? = null,     val trafficLightOffset: Distance? = null) : Instruction

Instruction indicating departure from the origin.

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

See also

Constructors

Link copied to clipboard
fun DepartureInstruction(    id: UniqueId = UniqueId(),     routeOffset: Distance,     travelTime: Duration,     maneuverPoint: GeoCoordinate,     drivingSide: DrivingSide,     isPossibleToCombineWithNext: Boolean,     announcements: List<Announcement> = emptyList(),     previousSignificantRoad: RoadInformation? = null,     nextSignificantRoad: RoadInformation? = null,     routePath: List<RouteCoordinate> = emptyList(),     intersectionName: TextWithPhonetics? = null,     signpost: Signpost? = null,     landmark: Landmark? = null,     startPointIndex: Int = 0,     sideStreetOffset: Distance? = null,     trafficLightOffset: Distance? = null)

Properties

Link copied to clipboard
open override val announcements: List<Announcement>

Fine-grained Announcements for the Instruction.

Link copied to clipboard
open override val drivingSide: DrivingSide

Indicates left-hand vs. right-hand side driving at the point of the maneuver.

Link copied to clipboard
open override val id: UniqueId

The ID of the instruction.

Link copied to clipboard
open override val intersectionName: TextWithPhonetics? = null

Name of the intersection at the maneuver point, if present for this instruction.

Link copied to clipboard
open override val isPossibleToCombineWithNext: Boolean

Indicates if the instruction can be combined with the next one. This can be used to build messages like "Turn left and then turn right".

Link copied to clipboard
open override val landmark: Landmark? = null

Landmark information, if present in this instruction.

Link copied to clipboard
open override val maneuverPoint: GeoCoordinate

Location of the maneuver expressed as a GeoCoordinate.

Link copied to clipboard
open override val nextSignificantRoad: RoadInformation? = null

Information about the road the driver will be on immediately after completing the maneuver, if available for this instruction.

Link copied to clipboard
open override val previousSignificantRoad: RoadInformation? = null

Information about the road the driver will be on immediately before starting the maneuver, if available for this instruction.

Link copied to clipboard
open override val routeOffset: Distance

Distance from the start of the route to the instruction point.

Link copied to clipboard
open override val routePath: List<RouteCoordinate>

A List of RouteCoordinates that represents a route path.

Link copied to clipboard
open override val sideStreetOffset: Distance? = null

Distance to the maneuver point from the intermediate side street, if any.

Link copied to clipboard
open override val signpost: Signpost? = null

Signpost information, if present for this instruction.

Link copied to clipboard
open override val startPointIndex: Int = 0

Index of the first point of the maneuver.

Link copied to clipboard
open override val trafficLightOffset: Distance? = null

Distance to the maneuver point from the preceding traffic light, if any.

Link copied to clipboard
open override val travelTime: Duration

Estimated travel time to the point at routeOffset.