Signpost

public struct Signpost : Equatable

Contains information about the signpost for the GuidanceInstruction.

  • Signpost exit name.

    Declaration

    Swift

    public let exitName: String
  • Signpost exit number.

    Declaration

    Swift

    public let exitNumber: String
  • Creates a signpost with the specified exit name, exit number and toward name.

    Throws

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

    Declaration

    Swift

    public init(
        exitNumber: String,
        exitName: String,
        towardName: String
    ) throws

    Parameters

    exitNumber

    Signpost exit number.

    exitName

    Signpost exit name.

    towardName

    Signpost toward name.

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

    See more

    Declaration

    Swift

    public enum InitializationError : Error
  • Signpost toward name.

    Declaration

    Swift

    public let towardName: String