StopLocation

@objc(StopLocation)
public class StopLocation : NSManagedObject
extension StopLocation: MKAnnotation
extension StopLocation: UIActivityItemSource
extension StopLocation: TKURLShareable

Represents a public transport location

Fetcher

  • Stops to for displaying a timetable for this stop – includes its children

    Declaration

    Swift

    public func stopsToMatchTo() -> [StopLocation]
  • Deletes all StopVisits associated with this stop, including its children

    Declaration

    Swift

    public func clearVisits()
  • Declaration

    Swift

    @nonobjc
    public class func fetchRequest() -> NSFetchRequest<StopLocation>
  • Declaration

    Swift

    @NSManaged
    public var alertHashCodes: Array<NSNumber>? { get set }
  • Declaration

    Swift

    @NSManaged
    public var filter: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var location: TKNamedCoordinate? { get set }
  • Declaration

    Swift

    @NSManaged
    public var name: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var regionName: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var shortName: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var sortScore: NSNumber? { get set }
  • Declaration

    Swift

    @NSManaged
    public var stopCode: String { get set }
  • Declaration

    Swift

    @NSManaged
    public var stopModeInfo: TKModeInfo? { get set }
  • Zone ID of this stop, as defined by GTFS. Useful for ticketing calculaations.

    Declaration

    Swift

    @NSManaged
    public var zoneID: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var children: Set<StopLocation>? { get set }
  • Declaration

    Swift

    @NSManaged
    public var endVisits: Set<StopVisits>? { get set }
  • Declaration

    Swift

    @NSManaged
    public var parent: StopLocation? { get set }
  • Declaration

    Swift

    @NSManaged
    public var visits: Set<StopVisits>? { get set }

Generated accessors for children

  • Declaration

    Swift

    @objc(addChildrenObject:)
    @NSManaged
    public func addToChildren(_ value: StopLocation)
  • Declaration

    Swift

    @objc(removeChildrenObject:)
    @NSManaged
    public func removeFromChildren(_ value: StopLocation)
  • Declaration

    Swift

    @objc(addChildren:)
    @NSManaged
    public func addToChildren(_ values: NSSet)
  • Declaration

    Swift

    @objc(removeChildren:)
    @NSManaged
    public func removeFromChildren(_ values: NSSet)

Generated accessors for endVisits

  • Declaration

    Swift

    @objc(addEndVisitsObject:)
    @NSManaged
    public func addToEndVisits(_ value: DLSEntry)
  • Declaration

    Swift

    @objc(removeEndVisitsObject:)
    @NSManaged
    public func removeFromEndVisits(_ value: DLSEntry)
  • Declaration

    Swift

    @objc(addEndVisits:)
    @NSManaged
    public func addToEndVisits(_ values: NSSet)
  • Declaration

    Swift

    @objc(removeEndVisits:)
    @NSManaged
    public func removeFromEndVisits(_ values: NSSet)

Generated accessors for visits

  • Declaration

    Swift

    @objc(addVisitsObject:)
    @NSManaged
    public func addToVisits(_ value: StopVisits)
  • Declaration

    Swift

    @objc(removeVisitsObject:)
    @NSManaged
    public func removeFromVisits(_ value: StopVisits)
  • Declaration

    Swift

    @objc(addVisits:)
    @NSManaged
    public func addToVisits(_ values: NSSet)
  • Declaration

    Swift

    @objc(removeVisits:)
    @NSManaged
    public func removeFromVisits(_ values: NSSet)
  • Declaration

    Swift

    @objc
    public var region: TKRegion? { get }
  • Declaration

    Swift

    @objc
    public var modeTitle: String { get }

MKAnnotation

  • Declaration

    Swift

    public var title: String? { get }
  • Declaration

    Swift

    public var subtitle: String? { get }
  • Declaration

    Swift

    public var coordinate: CLLocationCoordinate2D { get }

UIActivityItemSource

Wheelchair accessibility extensions

  • Accessibility of the stop. Note that whether you can get onto a specific service it’ll also depend on the accessibility of the service. See StopVisits.getWheelchairAccessibility()

    Declaration

    Swift

    internal(set) var wheelchairAccessibility: TKWheelchairAccessibility { get set }
  • Declaration

    Swift

    public var shareURL: URL? { get }