stop_times.md

June 12, 2018 ยท View on GitHub

Stop Times

  • Filename MUST be stop_times.txt
  • File MUST contain a record for every scheduled stop within a trip and route (i.e. the time when the Muni 14 Local Outbound that left at 8:02 gets to 24th St. and Mission St)
  • File MUST be a valid CSV file.
  • The first line of each file MUST contain case-sensitive field names.
  • Field names MUST NOT contain tabs, carriage returns or new lines.

File MUST contain the following attributes:

Required AttributesDescription
trip_idID that uniquely identifies trip
arrival_timeArrival time at a specific stop for a specific trip on a route in HH:MM:SS format measured from midnight. For trips that span multiple dates, the time should be entered as a value greater than 240000
departure_timeDeparture time at a specific stop for a specific trip on a route in HH:MM:SS format measured from midnight. For trips that span multiple dates, the time should be entered as a value greater than 240000
stop_idID that uniquely identifies a stop
stop_sequenceSequence number on a specific stop within a trip. The first stop sequence is 1 and subsequent stops in the trip are sequentially numbered.

File MAY contain the following attributes:

Optional AttributesDescription
stop_headsignText that appears on sign that identifies the trips destination to passengers. Use this field to override default headsign when it changes at stops.
pickup_typeType of pickup:
0/default - regular pickup
1 - no pickup available
2 - must phone agency
3 - must coordinate with driver
drop_off_typeType of drop off:
0/default - regular drop off
1 - no drop off available
2 - must phone agency
3 - must coordinate with driver
shape_dist_traveledPositions a stop as a distance from the first shape point in units that are used in this field in shapes.txt
timepointIndicates if specified arrival and departure times for a stop are strictly adhered to by the transit vehicle or if they are approximate and/or interpolated.
empty - times considered exact
0 - times considered approximate
1 - times considered exact