Road

public struct Road : Equatable

Road information relating to a GuidanceInstruction.

Lifecycle

  • Creates the instance with the specified properties.

    Throws

    If all properties are empty, the error InitializationError.incorrectInputs thrown.

    Declaration

    Swift

    public init(
        name: String,
        numbers: [String],
        shields: [RoadShield],
        types: Set<TomTomSDKRoute.RoadType> = []
    ) throws

    Parameters

    name

    Name of the road.

    numbers

    Road numbers.

    shields

    Road shields.

    types

    Road types.

Public

  • Name of the road.

    Declaration

    Swift

    public let name: String
  • Road numbers.

    Declaration

    Swift

    public let numbers: [String]
  • Road shields.

    Declaration

    Swift

    public let shields: [RoadShield]
  • Road types.

    Declaration

    Swift

    public let types: Set<TomTomSDKRoute.RoadType>

Road.InitializationError

  • An error that occurs during the creation of the instance.

    See more

    Declaration

    Swift

    public enum InitializationError : Error