TollgateGuidanceInstruction
public struct TollgateGuidanceInstruction : GuidanceInstruction
Instruction indicating the driver is approaching a tollgate or ETC terminal.
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: tollgateName: paymentTypes: ) 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?, tollgateName: String, paymentTypes: Set<TollPaymentType> )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.
tollgateNamename of the toll gate.
paymentTypespayment types accepted at toll gate.
-
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? -
Name of the toll gate.
Declaration
Swift
public let tollgateName: String -
Payment types accepted at toll gate.
Declaration
Swift
public let paymentTypes: Set<TollPaymentType>
TollgateGuidanceInstruction Structure Reference