BorderCrossingGuidanceInstruction
public struct BorderCrossingGuidanceInstruction : GuidanceInstruction
Instruction indicating an upcoming border crossing.
-
init(borderCrossing:id: routeOffset: maneuverPoint: drivingSide: combinedWithNext: previousSignificantRoad: nextSignificantRoad: routePath: intersectionName: signpost: ) Initializes the guidance instruction, specifying values for its fields.
Declaration
Swift
public init( borderCrossing: BorderCrossing, id: UUID, routeOffset: Measurement<UnitLength>, maneuverPoint: CLLocationCoordinate2D, drivingSide: TomTomSDKCommon.DrivingSide, combinedWithNext: Bool, previousSignificantRoad: Road? = nil, nextSignificantRoad: Road? = nil, routePath: [InstructionPoint] = [], intersectionName: String = "", signpost: Signpost? = nil )Parameters
borderCrossingBorder crossing information.
idThe ID of the instruction.
routeOffsetThe distance from the start of the route to the instruction point.
maneuverPointLocation of the maneuver expressed as
CLLocationCoordinate2D.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”.
previousSignificantRoadInformation about the road the driver will be on immediately before starting the maneuver, if available for this instruction.
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, if present for this instruction.
signpostSignpost information, if present for this instruction.
-
The ID of the instruction.
Declaration
Swift
public let id: UUID -
The distance from the start of the route to the instruction point.
Declaration
Swift
public let routeOffset: Measurement<UnitLength> -
Location of the maneuver expressed as a
CLLocationCoordinate2D.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: TomTomSDKCommon.DrivingSide -
Indicates if 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 -
Information about the road the driver will be on immediately before starting the maneuver, if available for this instruction.
Declaration
Swift
public let previousSignificantRoad: Road? -
Information about the road the driver will be on immediately after completing the maneuver, if available for this instruction.
Declaration
Swift
public let nextSignificantRoad: Road? -
An array of
InstructionPoint‘s that represents a route path.Declaration
Swift
public let routePath: [InstructionPoint] -
Name of the intersection at the maneuver point, if present for this instruction.
Declaration
Swift
public let intersectionName: String -
Signpost information, if present for this instruction.
Declaration
Swift
public let signpost: Signpost? -
Border crossing information.
Declaration
Swift
public let borderCrossing: BorderCrossing
TomTom SDK for iOS (0.53.1)
BorderCrossingGuidanceInstruction