gis-tools-ts - v0.6.0
    Preparing search index...

    Class GTFSTransfer

    Transfers

    Optional Defines additional rules/overrides for transfers between routes/trips/stops. The level of specificity is determined by which fields are present:

    • from_trip_id & to_trip_id (most specific)
    • route vs. trip combos
    • only from_stop_id & to_stop_id (least specific)

    Primary Key: (from_stop_id, to_stop_id, from_trip_id, to_trip_id, from_route_id, to_route_id)

    Index

    Constructors

    • Parameters

      • data: Record<string, string>

        the parsed GTFS CSV data

      Returns GTFSTransfer

    Properties

    fromRouteId?: string

    Optional Identifies a route on which the arriving trip is running. If both fromTripId and fromRouteId are defined, the trip must belong to that route, but fromTripId takes precedence.

    fromStopId?: string

    Conditionally Required Identifies where a connection begins (stops.stop_id, location_type=0 or 1). Required if transfer_type is 1, 2, or 3. Optional if transfer_type is 4 or 5.

    fromTripId?: string

    Conditionally Required Identifies the arriving trip (trips.trip_id). Required if transfer_type is 4 or 5; optional otherwise.

    minTransferTime?: number

    Optional Time in seconds required for a rider to complete the transfer. If transfer_type=2, this is the minimum transfer time.

    toRouteId?: string

    Optional Identifies a route on which the departing trip is running. If both toTripId and toRouteId are defined, the trip must belong to that route, but toTripId takes precedence.

    toStopId?: string

    Conditionally Required Identifies where a connection ends (stops.stop_id, location_type=0 or 1). Required if transfer_type is 1, 2, or 3. Optional if transfer_type is 4 or 5.

    toTripId?: string

    Conditionally Required Identifies the departing trip (trips.trip_id). Required if transfer_type is 4 or 5; optional otherwise.

    transferType: TransferType

    Required Indicates the type of connection:

    • 0 = Recommended
    • 1 = Timed
    • 2 = Requires min_transfer_time
    • 3 = Not possible
    • 4 = In-seat transfer
    • 5 = In-seat transfer not allowed