Contents
Trips & Schedules
Trips represent scheduled transit service along a
Trips
Trips are trips.txt entities imported from GTFS. A trip represents a single journey along a route at a specific time. Multiple trips typically operate on the same route throughout a service day, with each trip serving the same or similar stop sequences.
Key trip attributes include:
- Trip headsign: The destination or direction displayed to riders (e.g., "Downtown" or "Airport")
- Direction: Binary indicator (0 or 1) for travel direction, typically outbound vs. inbound
- Block: Groups trips operated by the same vehicle, enabling transfer time calculations
- Shape: Geographic path the vehicle travels (see
)
Stop Times & Schedules
Stop times define when a trip serves each stop along its route. This data comes from stop_times.txt in GTFS feeds.
Each stop time includes:
- Arrival and departure times: When the vehicle arrives at and departs from each stop. If specific times are not provided for a stop, Transitland interpolates times between designated "timepoint" stops before and after.
- Stop sequence: The order in which stops are visited
- Pickup and drop-off types: Whether passengers can board, alight, or both at each stop
- Timepoint: Indicates if the time is exact or approximate
Service Dates
Trip schedules operate on specific dates defined by service calendars:
- Regular service: Defined in
calendar.txtwith weekly patterns and date ranges - Exceptions: Defined in
calendar_dates.txtfor holidays, special events, or service changes
Frequency-Based Service
Some routes operate on headway-based schedules rather than fixed times. This is defined in frequencies.txt, indicating that vehicles depart at regular intervals (e.g., every 10 minutes) rather than specific scheduled times.
Real-Time Updates
Transitland enriches static trip schedules with real-time data from
Querying Schedule Data via Transitland
For detailed information about querying schedule data through the Transitland APIs, see:
- Query trips by route, service date, or with real-time data - View trips serving a specific stop at particular times - Plan journeys using trip schedules and real-time data