TripRequest

@objc(TripRequest)
public class TripRequest : NSManagedObject
extension TripRequest: TKRouterRequestable
extension TripRequest: TKURLShareable

Undocumented

Non-CoreData properties

  • Undocumented

    Declaration

    Swift

    public var hasTrips: Bool { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public var trips: Set<Trip> { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public var type: TKTimeType { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public var time: Date? { get }
  • Set the time and type for this request.

    Declaration

    Swift

    public func setTime(_ time: Date?, for type: TKTimeType)

Inserting

Regions

  • The region the complete trip takes place in. Can be international if it spanning more than one region.

    Declaration

    Swift

    public var spanningRegion: TKRegion { get }
  • The local region this trip starts in. Cannot be international and thus might be nil.

    Declaration

    Swift

    public var startRegion: TKRegion? { get }
  • The local region this trip ends in. Cannot be international and thus might be nil.

    Declaration

    Swift

    public var endRegion: TKRegion? { get }
  • Undocumented

    Declaration

    Swift

    public var departureTimeZone: TimeZone? { get }
  • Undocumented

    Declaration

    Swift

    public var arrivalTimeZone: TimeZone? { get }
  • Undocumented

    Declaration

    Swift

    public var applicableModeIdentifiers: [String] { get }

Sorting

  • The primary alternatives for this request, which is constructed by taking the trip groups, sorting them by the user’s selected sort orders, and then taking each group’s visible trip.

    See also

    sortDescriptorsAccordingToSelectedOrder

    Declaration

    Swift

    public func sortedVisibleTrips() -> [Trip]

    Return Value

    Visible trip for each trip group sorted by user’s preferences

  • Undocumented

    Declaration

    Swift

    public func sortDescriptors(withPrimary primary: TKTripCostType) -> [NSSortDescriptor]
  • Undocumented

    Declaration

    Swift

    public func tripTimeSortDescriptors() -> [NSSortDescriptor]

Debugging

  • Undocumented

    Declaration

    Swift

    public var debugString: String { get }
  • Undocumented

    Declaration

    Swift

    @nonobjc
    public class func fetchRequest() -> NSFetchRequest<TripRequest>
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var arrivalTime: Date? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var departureTime: Date? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var excludedStops: [String]? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var expandForFavorite: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var fromLocation: TKNamedCoordinate! { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var purpose: String? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var timeCreated: Date? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var toLocation: TKNamedCoordinate! { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var preferredGroup: TripGroup? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var tripGroups: Set<TripGroup> { get set }

Hitting API

  • Undocumented

    Declaration

    Swift

    public var context: NSManagedObjectContext? { get }
  • Undocumented

    Declaration

    Swift

    public var from: MKAnnotation { get }
  • to

    Undocumented

    Declaration

    Swift

    public var to: MKAnnotation { get }
  • Undocumented

    Declaration

    Swift

    public var modes: Set<String> { get }
  • at

    Undocumented

    Declaration

    Swift

    public var at: TKShareHelper.QueryDetails.Time { get }
  • Undocumented

    Declaration

    Swift

    public var additional: Set<URLQueryItem> { get }
  • Undocumented

    Declaration

    Swift

    public func toTripRequest() -> TripRequest
  • Undocumented

    Declaration

    Swift

    public var shareURL: URL? { get }