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

    Class GTFSFrequency

    Frequency

    Optional Defines headway-based (or compressed schedule-based) service for specific trips. Each record references a single trip and indicates:

    • A start/end time window
    • A headway (seconds between departures)
    • Whether it’s frequency-based (exact_times=0) or schedule-based (exact_times=1).

    Primary Key: (trip_id, start_time)

    Index

    Constructors

    • Parameters

      • data: Record<string, string>

        the parsed GTFS CSV data

      Returns GTFSFrequency

    Properties

    endTime: string

    Required Time at which service changes or ends (HH:MM:SS, can exceed 24:00:00 if overnight).

    exactTimes?: GTFSExactTimes

    Optional Whether this is frequency-based or schedule-based service.

    • 0 or empty = Frequency-based
    • 1 = Schedule-based
    headwaySecs: number

    Required Headway in seconds between departures from the same stop for this trip, during [start_time, end_time).

    startTime: string

    Required Time at which the first vehicle departs from the trip’s first stop with the specified headway (HH:MM:SS, can exceed 24:00:00 if overnight).

    tripId: string

    Required Identifies the trip (trips.trip_id) to which the specified headway of service applies.