ExitRoundaboutGuidanceInstruction

public struct ExitRoundaboutGuidanceInstruction : GuidanceInstruction

Guidance Instruction indicating an exit from a roundabout.

  • Initializes the guidance instruction, specifying values for its fields.

    Throws

    An exception of the type ExitRoundaboutGuidanceInstructionError.

    Declaration

    Swift

    public init(
        turnAngle: Measurement<UnitAngle>,
        exitNumber: Int?,
        quantizedTurnAngle: QuantizedTurnAngle,
        id: UUID = UUID(),
        routeOffset: Measurement<UnitLength>,
        maneuverPoint: CLLocationCoordinate2D,
        drivingSide: TomTomSDKCommon.DrivingSide,
        combinedWithNext: Bool,
        previousSignificantRoad: Road? = nil,
        nextSignificantRoad: Road? = nil,
        routePath: [InstructionPoint] = [],
        intersectionName: String = "",
        signpost: Signpost? = nil
    ) throws

    Parameters

    turnAngle

    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.

    quantizedTurnAngle

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

    id

    The ID of the instruction.

    routeOffset

    The distance from the start of the route to the instruction point.

    maneuverPoint

    Location of the maneuver expressed as CLLocationCoordinate2D.

    drivingSide

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

    combinedWithNext

    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”.

    previousSignificantRoad

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

    nextSignificantRoad

    Information about the road the driver will be on immediately after completing the maneuver.

    routePath

    A list of RoutePoints that represents a route path.

    intersectionName

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

    signpost

    Signpost information, if present for this instruction.

  • id

    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?
  • turn angle relative to the driving direction on the entry road to the roundabout, in the range -180...180 degrees.

    Declaration

    Swift

    @available(*, deprecated, message: "This API is deprecated and will be removed with the next major release. Please use RoundaboutGuidanceInstruction.turnAngle instead.")
    public var turnAngle: Measurement<UnitAngle>
  • 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.

    Declaration

    Swift

    @available(*, deprecated, message: "This API is deprecated and will be removed with the next major release. Please use RoundaboutGuidanceInstruction.exitNumber instead.")
    public var exitNumber: Int?
  • Classification of the turn angle relative to the driving direction on the entry road to the roundabout, if available.

    Declaration

    Swift

    @available(*, deprecated, message: "This API is deprecated and will be removed with the next major release. Please use RoundaboutGuidanceInstruction.quantizedTurnAngle instead.")
    public let quantizedTurnAngle: QuantizedTurnAngle