Trip

public class Trip : Item

A trip or journey, consisting of Routes.

  • 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 route from one Location to another, using some ModeOfTransport.

    Declaration

    Swift

    var route: Results<Route>? { 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 }
  • Undocumented

    Declaration

    Swift

    public required convenience init(from decoder: Decoder) throws