TurnGuidanceInstruction
public struct TurnGuidanceInstruction : GuidanceInstruction
Instruction indicating a turn maneuver.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(id:routeOffset: travelTimeInSeconds: maneuverPoint: drivingSide: combinedWithNext: previousSignificantRoad: nextSignificantRoad: routePath: intersectionName: signpost: turnAngleInDegrees: turnDirection: ) Declaration
Swift
public init( id: UUID = UUID(), routeOffset: Measurement<UnitLength>, travelTimeInSeconds: TimeInterval, maneuverPoint: CLLocationCoordinate2D, drivingSide: DrivingSide?, combinedWithNext: Bool, previousSignificantRoad: RoadInformation?, nextSignificantRoad: RoadInformation?, routePath: [RouteCoordinate], intersectionName: String?, signpost: Signpost?, turnAngleInDegrees: Int, turnDirection: TurnDirection )Parameters
uuidThe ID of the instruction.
routeOffsetDistance from the start of the route to the instruction point.
travelTimeInSecondsEstimated travel time to the point at routeOffset.
maneuverPointLocation of the maneuver expressed as a latitude longitude pair.
drivingSideIndicates left-hand vs. right-hand side driving at the point of the maneuver.
combinedWithNextIndicates whether the instruction should be combined with the next one. This can be used to build messages like “Turn left and then turn right”.
verbalMessagePhoneticsPhonetic strings of all of the readable [Instruction] properties.
previousSignificantRoadInformation about the road the driver will be on immediately before starting the maneuver.
nextSignificantRoadInformation about the road the driver will be on immediately after completing the maneuver.
routePathA List of [RoutePoint]s that represents a route path.
intersectionNameName of the intersection at the maneuver point.
signpostSignpost information, if present for this instruction.
turnAngleInDegreesTurn angle relative to the driving direction on the route, expressed in the range -180…180 degrees.
turnDirectionClassification of the relative angle of the turn.
-
Unique ID of the instruction.
Declaration
Swift
public let id: UUID -
The distance from the start of the route to the point of the instruction
Declaration
Swift
public let routeOffset: Measurement<UnitLength> -
The estimated travel time up to the point corresponding to routeOffset.
Declaration
Swift
public let travelTimeInSeconds: TimeInterval -
The coordinate of the maneuver
Declaration
Swift
public let maneuverPoint: CLLocationCoordinate2D -
Indicates left-hand vs. right-hand side driving at the point of the maneuver.
Declaration
Swift
public let drivingSide: DrivingSide? -
Indicates whether the instruction should be combined with the next one. This can be used to build messages like “Turn left and then turn right”.
Declaration
Swift
public let combinedWithNext: Bool -
Road information at some point on a [Route].
Declaration
Swift
public let previousSignificantRoad: RoadInformation? -
Road information at some point on a [Route].
Declaration
Swift
public let nextSignificantRoad: RoadInformation? -
List of [RouteCoordinate] on the [Route] with information about distance from start in meters.
Declaration
Swift
public let routePath: [RouteCoordinate] -
Name of the intersection
Declaration
Swift
public let intersectionName: String? -
The Signpost contains information about the signpost for the [GuidanceInstruction].
Declaration
Swift
public let signpost: Signpost? -
Turn angle relative to the driving direction on the route, expressed in the range -180…180 degrees.
Declaration
Swift
public let turnAngleInDegrees: Int -
Classification of the relative angle of the turn.
Declaration
Swift
public let turnDirection: TurnDirection
TurnGuidanceInstruction Structure Reference