mail news phone rss v-card facebook linkedin twitter

Reference

Trllium GTFS Documentation

January 2021

About this document

This document inventories fields used by GTFS feeds created and/or managed by Trillium.

About the fields in this document

Table Name


GTFS Spec


Status


Notes


agency.txt
RequiredIncluded
areas.txt
Experimental
Included for some feeds
Only used for GTFS-Flex v1 feeds.
booking_rules.txt
Experimental
Included for some feeds
Only used for GTFS-Flex v2 feeds.
calendar_attributes.txt
Experimental
Included
Describes a calendar, e.g. "Weekdays" or "Year Round (Sunday Only)"
calendar_dates.txt
Optional
Included
calendar.txt
Required
Included
directions.txt
Experimental
Included
Defined by GTFS+. Combines route_id with named directions, e.g. "Westbound" or "Inbound"
fare_attributes.txt
Optional
Included where possible
fare_rider_categories.txt
Experimental
Included where possible
Combines fare_id, rider_category_id, and price.
fare_rules.txt
Optional
Included where possible
farezone_attributes.txt
Experimental
Included where possible
Combines a zone_id with a zone_name
feed_info.txt
Optional
Included
frequencies.txt
Optional
Included for some feeds
linked_datasets.txt
Experimental
Included for some feeds
For use with gtfs-realtime
locations.geojson
Experimental
Included for some feeds
Only used for GTFS-Flex v2 feeds.
location_groups.txt
Experimental
Included for some feeds
Only used for GTFS-Flex v2 feeds.
rider_categories.txt
Experimental
Included for some feeds

Combines description of rider types with ids.


routes.txt
Required
Included
runcut.txt
Experimental
Included in some feeds
For use with gtfs-realtime
shapes.txt
Optional
Included
stop_attributes.txt
Experimental
Included for some feeds

Provides a city for a given stop_id


stop_times.txt
Required
Included
stops.txt
Required
Included
timetable_stop_order.txt
Experimental
Included for some feeds

Used by GTFS-to-HTML software, this is an optional file that can specify stop order for a particular timetable.


timetables.txt
Experimental
Included for some feeds

Used by GTFS-to-HTML software. Specifies timetables to build.


transfers.txt
Optional
Included
trips.txt
Required
Included

agency.txt

Field Name


GTFS Spec


Status


Notes


agency_id
Optional
Included
agency_url
Required
Included
agency_lang
OptionalIncluded
agency_nameRequiredIncluded
agency_phone
OptionalIncluded
agency_timezone
RequiredIncluded
agency_fare_urlOptionalIncluded

areas.txt

Areas.txt is only used for GTFS-Flex v1 files, and must be turned on in GTFS Manager to export.

 

Field Name


GTFS Spec


Status


Notes


area_id
ExperimentalIncluded (some records)

Used for GTFS-Flex v1 


wktExperimental
Included (some records)

Used for GTFS-Flex v1 


booking_rules.txt

Booking_rules.txt is only used for GTFS-Flex v2 files, and must be turned on in GTFS Manager to export.

 

Field Name


GTFS Spec


Status


Notes


booking_rule_id
Experimental
Included (some records)

Used for GTFS-Flex v2 


prior_notice_duration_min
Experimental
Included (some records)

Used for GTFS-Flex v2 


prior_notice_duration_max
Experimental
Included (some records)

Used for GTFS-Flex v2 


prior_notice_last_dayExperimental
Included (some records

Used for GTFS-Flex v2 


prior_notice_last_time
Experimental
Included (some records)

Used for GTFS-Flex v2 


prior_notice_start_day
ExperimentalIncluded (some records)

Used for GTFS-Flex v2 


prior_notice_start_time
ExperimentalIncluded (some records)

Used for GTFS-Flex v2 


prior_notice_service_id
Experimental
Included (some records)

Used for GTFS-Flex v2 


message
ExperimentalIncluded (some records)

Used for GTFS-Flex v2 


pickup_message
Experimental
Included (some records)

Used for GTFS-Flex v2 


drop_off_message
Experimental
Included (some records)

Used for GTFS-Flex v2 


phone_numberExperimental
Included (some records)

Used for GTFS-Flex v2 


info_url
Experimental
Included (some records)

Used for GTFS-Flex v2 


booking_url
Experimental
Included (some records)

Used for GTFS-Flex v2 


calendar_attributes.txt

Field Name


GTFS Spec


Status


Notes


service_id
Experimental
Included
service_description
Experimental
Included Describes a calendar’s coverage, e.g. “Year Round (Weekend)”

calendar_dates.txt

Field Name


GTFS Spec


Status


Notes


service_id
RequiredIncluded
date
Required>
Included
holiday_name
Experimental
IncludedNames a particular holiday, e.g. "Thanksgiving Day"
exception_type
Required Included

calendar.txt

Field Name


GTFS Spec


Status


Notes


service_idRequiredIncluded
service_name
Required Included
monday
Required
Included
tuesday
Requiredncluded
wednesdayRequired
Included
thursday
Required
Included
fridayRequired
Included
saturday
Required
Included
sundayRequired
Included
start_date
Required Included
end_date
Required
Included

directions.txt

Defined by GTFS+

 

Field Name


GTFS Spec


Status


Notes


route_id
Experimental
Included
direction_idExperimental
Included
Direction
Experimental
IncludedExamples include “Northbound” or “Inbound”

fare_attributes.txt

Field Name


GTFS Spec


Status


Notes


agency_id
OptionalIncluded (some records)
fare_idRequiredIncluded (some records)
price
RequiredIncluded (some records)
currency_type
RequiredIncluded (some records)
payment_method
Required
Included (some records)
transfers Required Included (some records)
transfer_duration
Optional
Included (some records)

fare_rider_categories.txt

Field Name


GTFS Spec


Status


Notes


fare_id
Experimental
Included (some records)
rider_category_idExperimental
Included (some records)
priceExperimental
Included (some records)

fare_rules.txt

Field Name


GTFS Spec


Status


Notes


fare_id
RequiredIncluded (some records)
route_id
OptionalIncluded (some records)
origin_id
Optional
Included (some records)
destination_id
Optional
Included (some records)
contains_id
Optional
Included (some records)

farezone_attributes.txt

Field Name


GTFS Spec


Status


Notes


zone_id
ExperimentalIncluded (some records)
zone_name
Experimental
Included (some records)

feed_info.txt

Field Name


GTFS Spec


Status


Notes


feed_publisher_urlRequiredIncluded
feed_publisher_name
RequiredIncluded
feed_lang
Required
Included
feed_version
Experimental
Included
feed_license
Experimental
Included (some records)
feed_contact_email
Experimental
Included
feed_contact_url
Optional
Included
feed_start_dateOptional
Included
feed_end_date
Optional
Included
feed_id
Experimental
Included

frequencies.txt

Field Name


GTFS Spec


Status


Notes


trip_id
RequiredIncluded (some records)
start_time
Required
Included (some records)
end_time
Required
Included (some records)
headway_secs
Required
Included (some records)
exact_times
Optional Included (some records)

linked_datasets.txt

Field Name


GTFS Spec


Status


Notes


urlExperimental
Included (some records)
trip_updates
Experimental
Included (some records)
vehicle_positions
Experimental
Included (some records)
service_alerts
Experimental
Included (some records)
authentication_type
ExperimentalIncluded (some records)
authentication_info_urlExperimental

Included (some records)

api_key_parameter_name
Experimental
Included (some records)

locations.geojson

This is a GeoJSON file used only for GTFS-Flex v2, and must be turned on in GTFS Manager to export.

location_groups.txt

Location_groups.txt is only used for GTFS-Flex v2 files, and must be turned on in GTFS Manager to export.

 

Field Name


GTFS Spec


Status


Notes


location_group_idExperimental
Included (some records)Used for GTFS-Flex v2 
location_id
ExperimentalIncluded (some records)

Used for GTFS-Flex v2 


location_group_name
Experimental Included (some records

Used for GTFS-Flex v2 


rider_categories.txt

Defined by GTFS+

 

Field Name


GTFS Spec


Status


Notes


rider_category_idExperimental
Included (some records)
rider_category_description
Experimental
Included (some records)
Some examples include “Child,” “Senior,” and “Student.”

routes.txt

Field Name


GTFS Spec


Status


Notes


route_id
Required
Included
agency_idOptionalIncluded
route_short_name
RequiredIncluded
route_long_nameRequiredIncluded
route_descOptional
Included
route_typeRequired Included
route_urlOptionalIncluded (some records)
route_color
Optional
Included (some records)
route_text_color
Optional
Included (some records)
route_sort_orderExperimental
Included (some records)

Integer value that can be used for ordering routes in a way that is ideal for presentation to customers. (See change proposal.)


min_headway_minutes
Experimental
Included (some records)
For a frequency-based route, provides the highest frequency (lowest headway).
eligibility_restricted
Experimental
Included (some records)

Used for GTFS-Flex v1


runcut.txt

Field Name


GTFS Spec


Status


Notes


runs_idExperimental
Included (some records)
service_idOptionalIncluded (some records)
block_idOptionalIncluded (some records)
run_number
Experimental
Included (some records)
piece_number
Experimental
Included (some records)
start_trip_id
Optional

Included (some records)

start_stop_id
Optional

Included (some records)

end_trip_id
Optional

Included (some records)

end_stop_idOptionalIncluded (some records)

shapes.txt

Field Name


GTFS Spec


Status


Notes


shape_idRequiredIncluded
shape_pt_lat
RequiredIncluded
shape_pt_lon
RequiredIncluded
shape_pt_sequenceRequiredIncluded
shape_dist_traveledOptionalIncluded

stop_attributes.txt

Defined by GTFS+

 

Field Name


GTFS Spec


Status


Notes


stop_id
Experimental
Included
stop_cityExperimental
Included (some records)

stop_times.txt

Field Name


GTFS Spec


Status


Notes


trip_id
Required
Included
arrival_time
Required
Included
departure_time
RequiredIncluded
stop_id
Required
Included
stop_sequence
RequiredIncluded
stop_headsign
OptionalIncluded (some records)
pickup_type
Optional
Included
drop_off_type
Optional
Included
shape_dist_travelled
OptionalIncluded
timepointOptionalIncluded
start_service_area_id
Experimental

Included (some records)

Used for GTFS-Flex v1 
end_service_area_id
Experimental

Included (some records)

Used for GTFS-Flex v1 
start_service_area_radius
Experimental

Included (some records)

Used for GTFS-Flex v1 
end_service_area_radius
Experimental

Included (some records)

Used for GTFS-Flex v1 
continuous_pickup
OptionalIncluded

Can be used to indicate a section of a trip where it is possible to board or alight from the transit vehicle at any point along the vehicle's path of travel.


continuous_drop_off
OptionalIncluded

Can be used to indicate a section of a trip where it is possible to board or alight from the transit vehicle at any point along the vehicle's path of travel.


pickup_area_id
Experimental
Included (some records)

Used for GTFS-Flex v1 


drop_off_area_idExperimental
Included (some records)

Used for GTFS-Flex v1 


pickup_service_area_radius
Experimental
Included (some records)

Used for GTFS-Flex v1 


drop_off_service_area_radius
Experimental
Included (some records)

Used for GTFS-Flex v1 


pickup_booking_rule_id
ExperimentalIncluded (some records)

Used for GTFS-Flex v2


drop_off_booking_rule_id
Experimental
Included (some records)

Used for GTFS-Flex v2


start_pickup_dropoff_window
Experimental
Included (some records)

Used for GTFS-Flex v2


end_pickup_dropoff_windowExperimentalIncluded (some records)

Used for GTFS-Flex v2


mean_duration_factor
Experimental
Included (some records)

Used for GTFS-Flex v2


mean_duration_offsetExperimental
Included (some records)

Used for GTFS-Flex v2


safe_duration_factorExperimental
Included (some records)

Used for GTFS-Flex v2


safe_duration_offsetExperimental
Included (some records

Used for GTFS-Flex v2


stops.txt

Field Name


GTFS Spec


Status


Notes


stop_id
Required
Included
stop_codeOptionalIncluded
platform_code
ExperimentalIncluded (some records)

Used to distinguish between multiple platforms at rail stations. (See Google Maps extensions.)


stop_nameRequiredIncluded
stop_descOptionalIncluded (some records)
stop_lat
RequiredIncluded
stop_lon
RequiredIncluded
zone_id
OptionaIncluded (some records)
stop_url
Optional
Included (some records)
location_typeOptionalIncluded
parent_station
OptionalIncluded (some records)
stop_timezone
OptionalIncluded
positionExperimentalIncluded (some records)

Can be used to show position of a stop on a block.


direction
Experimental
Included (some records)

Can be used to show direction of travel served by a stop.


wheelchair_boarding
Optional
Included

Timetable_stop_order.txt

Used for GTFS-to-HTML

 

Field Name


GTFS Spec


Status


Notes


timetable_id
ExperimentalIncluded
stop_idExperimentalIncluded
stop_sequence
ExperimentalIncluded
stop_nameExperimentalIncluded
connected_routesExperimental
Included

Timetables.txt

Used for GTFS-to-HTML

 

Field Name


GTFS Spec


Status


Notes


timetable_id
ExperimentalIncluded
route_idExperimentalIncluded
direction_id
ExperimentalIncluded (some records)
start_dateExperimental
Included
end_dateExperimental
Included
mondayExperimentalIncluded
tuesdayExperimentalIncluded
wednesdayExperimentalIncluded
thursdayExperimentalIncluded
fridayExperimentalIncluded
saturdayExperimental
Included
sundayExperimentalIncluded
service_noteExperimentalIncluded
direction_labelExperimental
Included
orientationExperimental
Included

transfers.txt

Field Name


GTFS Spec


Status


Notes


from_stop_idRequiredIncluded
to_stop_idRequiredIncluded
transfer_type
RequiredIncluded
min_transfer_time
OptionalIncluded (some records)

trips.txt

Field Name


GTFS Spec


Status


Notes


route_idRequiredIncluded
service_idRequiredIncluded
trip_idRequiredIncluded
trip_headsign
OptionalIncluded
trip_short_nameOptionalIncluded
direction_id
OptionalIncluded
block_idOptionalIncluded
shape_idOptionalIncluded
wheelchair_accessible
OptionalIncluded (some records)
bikes_allowed
Optional
Included (some records)
trip_type
Experimental
Included (some records)

Can be used to note Express or Limited trips.


drt_max_travel_time
ExperimentalIncluded (some records)

Used for GTFS-Flex v1


drt_advance_book_min
ExperimentalIncluded (some records)

Used for GTFS-Flex v1


drt_pickup_message
ExperimentalIncluded (some records)

Used for GTFS-Flex v1


drt_drop_off_message
Experimental
Included (some records)

Used for GTFS-Flex v1


continuous_pickup_message
ExperimentalIncluded (some records)

Used for GTFS-Flex v1


continuous_drop_off_message
ExperimentalIncluded (some records)

Used for GTFS-Flex v1