RoundaboutInstruction

data class RoundaboutInstruction(    val id: UniqueId = UniqueId(),     val routeOffset: Distance,     val travelTime: Duration,     val maneuverPoint: GeoCoordinate,     val junctionType: JunctionType? = null,     val drivingSide: DrivingSide,     val isPossibleToCombineWithNext: Boolean,     val announcements: List<Announcement> = emptyList(),     val maneuverType: Maneuver? = null,     val previousSignificantRoad: RoadInformation? = null,     val nextSignificantRoad: RoadInformation? = null,     val routePath: List<RouteCoordinate> = emptyList(),     val intersectionName: String = "",     val signpost: Signpost? = null,     val startPointIndex: Int = 0,     val turnAngleInDegrees: Int,     val exitNumber: Int? = null,     val roundaboutDirection: RoundaboutDirection) : Instruction

Instruction indicating an upcoming roundabout.

See also

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

Parameters

turnAngleInDegrees

turn angle relative to the driving direction on the entry road to the roundabout, in the range -180...180 degrees.

exitNumber

exit number where the driver should leave the roundabout, counted from the entry point to the roundabout. If the route starts on the roundabout, counting starts from the departure point.

roundaboutDirection

classification of the turn angle relative to the driving direction on the entry road to the roundabout.

Constructors

Link copied to clipboard
fun RoundaboutInstruction(    id: UniqueId = UniqueId(),     routeOffset: Distance,     travelTime: Duration,     maneuverPoint: GeoCoordinate,     junctionType: JunctionType? = null,     drivingSide: DrivingSide,     isPossibleToCombineWithNext: Boolean,     announcements: List<Announcement> = emptyList(),     maneuverType: Maneuver? = null,     previousSignificantRoad: RoadInformation? = null,     nextSignificantRoad: RoadInformation? = null,     routePath: List<RouteCoordinate> = emptyList(),     intersectionName: String = "",     signpost: Signpost? = null,     startPointIndex: Int = 0,     turnAngleInDegrees: Int,     exitNumber: Int? = null,     roundaboutDirection: RoundaboutDirection)

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
val exitNumber: Int? = null
Link copied to clipboard
open override val id: UniqueId

The ID of the instruction.

Link copied to clipboard
open override val intersectionName: String

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 junctionType: JunctionType? = null

Type of junction at which the maneuver takes place, if present for 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 maneuverType: Maneuver? = null

Type of maneuver.

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
val roundaboutDirection: RoundaboutDirection
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 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 travelTime: Duration

Estimated travel time to the point at routeOffset.

Link copied to clipboard
val turnAngleInDegrees: Int