GTFS To Public Transit Data Model (Public Transit Tools)
Summary
Converts one or more General Transit Feed Specification (GTFS) public transit datasets to a set of feature classes and tables that represent the transit stops, lines, and schedules in the format defined by the Network Analyst public transit data model.
The transit data model feature classes and tables produced by this tool are as follows:
StopsLineVariantElementsLVEShapes(optional)CalendarsCalendarExceptionsLinesLineVariantsRunsScheduleElementsSchedules
The output from this tool can be used as input to the Connect Public Transit Data Model To Streets tool to prepare all necessary inputs for a transit-enabled network dataset. The complete workflow for creating such a network dataset is described in Create and use a network dataset with public transit data.
The output from this tool can also be used as input to the Calculate Transit Service Frequency tool.
Usage
The data from all input GTFS datasets will be combined into the same set of output tables and feature classes. The typical motivation for using multiple input GTFS datasets is to model a metropolitan area in which multiple transit service providers operate in the same geographic area.
The tool performs some validation on each input GTFS dataset to check for common data problems. When a problem is found, the tool issues a warning and does not process that dataset. The tool output will include data from only those input GTFS datasets that were successfully processed. If some GTFS datasets are processed successfully and others are not processed because of data problems, you can fix the data problems and append the fixed GTFS datasets to the existing tool output by running the tool again with the Append to existing tables parameter checked.
Each input GTFS dataset must contain the
stops.txt,routes.txt,trips.txt, andstop_times.txtfiles, and either thecalendar.txtorcalendar_dates.txtfile, or both. Thefrequencies.txtfile will be used if it is present. Theshapes.txtfile will be used if it is present and you choose to output theLVEShapesfeature class.Although GTFS allows blank values for the
arrival_timeanddeparture_timefields in thestop_times.txtfile, exact times are required by the Network Analyst public transit data model for consumption by the Public Transit evaluator in the network dataset. Check the Interpolate blank stop times parameter to estimate arrival and departure times for an input GTFS dataset with astop_times.txtfile that does not have explicit values for allarrival_timeanddeparture_timefields.The tool constructs the
Stopsfeature class using the latitude and longitude values from thestop_latandstop_lonfields in the GTFSstops.txtfile.The
stop_latandstop_lonfields in the GTFSstops.txtfile define the latitude and longitude of stops. These fields are permitted by the specification to be null if the stop'slocation_typefield has a value of 3 or 4. However, because this tool creates geographical features to represent stops, it cannot map stops that have no latitude or longitude. Consequently, stops withlocation_typevalues of 3 or 4 that have null values forstop_latorstop_lonwill be skipped and not included in the tool's output.The tool constructs the
LineVariantElementsfeatures by creating a straight line between each pair of stops that is directly connected by a transit trip.Note:
The
LineVariantElementsfeatures are not intended to represent the actual geographic paths taken by buses, trains, or other public transit vehicles but are instead representative of logical connections in the transit system.LineVariantElementsfeatures are not meant to be used for visualization. The Public Transit evaluator in the network dataset will use the public transit schedules to determine the travel time required to traverse aLineVariantElementsfeature, so its shape and length are irrelevant. However, you can edit the shapes of theLineVariantElementsfeatures manually, but do not split or merge the features or disconnect them from their adjacent stops.For cartographic visualization of public transit lines, you can use the Make LVEShapes from shapes.txt parameter to create the
LVEShapesfeature class from theshapes.txtfile.The tool takes longer to run when generating the optional
LVEShapesfeature class.If more than one GTFS route or variation of the same route provides service between the same two stops, one
LineVariantElementsfeature will be created per route or route variation providing the service.For example, if GTFS
route_id10 and GTFSroute_id47 both travel between the same two stops with no other stops in between, the tool will generate twoLineVariantElementsfeatures, one forroute_id10 and one forroute_id47. These two line feature will be geographically coincident.Similarly, if
route_id15 serves two different end stations, but allroute_id15 trips, regardless of end station, connect a particular pair of stops, oneLineVariantElementsfeature will be created per end station, resulting in two coincidentLineVariantElementsfeatures. These route variations typically correspond to differentshape_idvalues in the GTFS dataset.Because the public transit data model requires feature classes and tables with specific names, you cannot include more than one set of public transit data model feature classes and tables in the same geodatabase. Do not include the target feature dataset in a geodatabase with an existing feature dataset containing public transit data model feature classes.
If the target feature dataset is in an enterprise geodatabase, it must not be versioned. Before running the tool, reconcile and post the data in the feature dataset and unregister it as versioned.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input GTFS Folders |
One or more folders containing valid GTFS data. Each folder must contain the GTFS |
Folder |
|
Target Feature Dataset |
The feature dataset where the transit-enabled network dataset will be created. The The feature dataset can be in a file geodatabase or an enterprise geodatabase and can have any spatial reference. If the target feature dataset is in an enterprise geodatabase, it must not be versioned. Do not include the target feature dataset in a geodatabase with an existing feature dataset containing public transit data model feature classes. Do not use a feature dataset in a mobile geodatabase if you intend to create a network dataset using the output. |
Feature Dataset |
|
Interpolate blank stop times (Optional) |
Specifies whether blank values from the
|
Boolean |
|
Append to existing tables (Optional) |
Specifies whether the input GTFS datasets will be appended to existing public transit data model feature classes and tables in the target feature dataset and its parent geodatabase.
|
Boolean |
|
Make LVEShapes from shapes.txt (Optional) |
Specifies whether the The
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Target Feature Dataset |
The feature dataset to which the new feature classes have been added. |
Feature Dataset |
|
Output Stops |
The |
Feature Class |
|
Output Line Variant Elements |
The |
Feature Class |
|
Output Calendars |
The |
Table |
|
Output Calendar Exceptions |
The |
Table |
|
Output Lines |
The |
Table |
|
Output Line Variants |
The |
Table |
|
Output Runs |
The |
Table |
|
Output Schedule Elements |
The |
Table |
|
Output Schedules |
The |
Table |
|
Output LVEShapes |
The |
Feature Class |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes