BorderCrossing

public struct BorderCrossing

Indicates a border crossing between two countries.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates an instance with the specified countries which border crossed.

    Declaration

    Swift

    public init(
        fromCountry: Country,
        toCountry: Country
    ) throws

    Parameters

    fromCountry

    Information about the country the vehicle is leaving.

    toCountry

    Information about the country the vehicle is entering.

Public

  • Information about the country the vehicle is leaving.

    Declaration

    Swift

    public let fromCountry: Country
  • Information about the country the vehicle is entering.

    Declaration

    Swift

    public let toCountry: Country

BorderCrossingError

  • Errors that can be thrown during creation of BorderCrossing

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum InitializationError : Error
  • Errors that can be thrown during validation of BorderCrossing.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum DataError : Error