Route

public class Route : Item

A route from one Location to another, using some ModeOfTransport.

  • The startTime of something. For a reserved event or service, the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to December. For media, including audio and video, it’s the time offset of the start of a clip within a larger file.

    Declaration

    Swift

    @objc
    dynamic var startTime: Date?
  • The endTime of something. For a reserved event or service, the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to December. For media, including audio and video, it’s the time offset of the end of a clip within a larger file.

    Declaration

    Swift

    @objc
    dynamic var endTime: Date?
  • A way of transportation, for instance a bus or airplane.

    Declaration

    Swift

    var modeOfTransport: Results<ModeOfTransport>? { get }
  • The location where some Item starts, for instance the start of a route.

    Declaration

    Swift

    var startLocation: Results<Location>? { get }
  • The location where some Item ends, for instance the destination of a route.

    Declaration

    Swift

    var endLocation: Results<Location>? { get }
  • The price or cost of an Item, typically for one instance of the Item or the defaultQuantity.

    Declaration

    Swift

    var price: Results<Measure>? { get }
  • A Receipt is a confirmation of a transaction.

    Declaration

    Swift

    var receipt: Results<Receipt>? { get }
  • A ticket for an Event or Route.

    Declaration

    Swift

    var ticket: Results<File>? { get }
  • Undocumented

    Declaration

    Swift

    public required convenience init(from decoder: Decoder) throws