Structs

The following structs are available globally.

  • A computed set of directions to get from A to B at a specific time. Typically the result of a route planning algorithm.

    See more

    Declaration

    Swift

    public struct Journey: Item
  • A group of Stations, for example a metropolitan area or a geographical or cultural region.

    See more

    Declaration

    Swift

    public struct Region: Item
  • Larger building or area that can be identified by a name. Usually represented by a single node on a public transport map. Whereas a Stop usually specifies a location, a Station is often a broader area that may span across multiple levels or buildings.

    See more

    Declaration

    Swift

    public struct Station: Item
  • A single small point or structure at which vehicles stop. A Stop always belongs to a Station. It may for example be a sign, a basic shelter or a railway platform.

    Note

    If the underlying data source does not allow such a fine-grained distinction, use Stations instead.
    See more

    Declaration

    Swift

    public struct Stop: Item