CountrySection

public struct CountrySection : Section

The CountrySection struct contains information about a part of the route related to a country.

Lifecycle

  • Initializer

    Important

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

    Declaration

    Swift

    public init(
        sectionLocation: SectionLocation,
        routeOffset: Measurement<UnitLength>,
        length: Measurement<UnitLength>,
        countryCode: String
    )

    Parameters

    sectionLocation

    The location of the section.

    routeOffset

    The offset on the route where the section starts.

    length

    The length of the section.

    countryCode

    The 3-character ISO 3166-1 alpha-3 country code (e.g. “NLD”).

Public

  • The location of the section.

    Declaration

    Swift

    public var sectionLocation: SectionLocation
  • The offset on the route where the section starts.

    Declaration

    Swift

    public var routeOffset: Measurement<UnitLength>
  • The length of the section.

    Declaration

    Swift

    public var length: Measurement<UnitLength>
  • The 3-character ISO 3166-1 alpha-3 country code (e.g. “NLD”)

    Important

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

    Declaration

    Swift

    public var countryCode: String