Download Recap GTFS (or Create)
- https://mbta-massdot.opendata.arcgis.com/datasets/MassDOT::gtfs-recap-fall-2018/about
- Creating a GTFS - https://www.nationalrtap.org/Technology-Tools/GTFS-Builder
Clean GTFS
- Cleaning Script:
- https://github.com/mmatkinson7/gtfs_transcad_prep/blob/main/itsleeds_cleangtfs.R
- Zip a folder of the outputs
- https://github.com/mmatkinson7/gtfs_transcad_prep/blob/main/itsleeds_cleangtfs.R
- Use Validator:
Consolidate GTFS
- Consolidation Script:
Make Copy of Link Layer (TDM23 DBD)
- For example - make a copy of Links_Nodes.dbd from here: tdm23\inputs\networks
Open TransCAD 9.0
- Open Links_Nodes.dbd in TransCAD 9
- Make Networks -
- Select by Conditions
- Select only Links that are relevant to the mode you are trying to import from GTFS
- You need a separate network for each of the transit modes.
- Look Up Table
- Select by Conditions
GTFS Mode | Func_Class | Mode |
0: Light Rail | 102 | 4 |
1: Heavy Rail | 102 | 5 |
2: Rail | 100 | 6 |
3: Bus | <> (100,101,102,90,99,190,20,21,30,40,41,42)
& FC_Summ <> 9 |
1,2,3,8,9,10 |
4: Ferry | 101 | 7 |
2. Import GTFS to Link Layer
4. Set Network for each route - file:///C:/Program%20Files/TransCAD%209.0/Help/TransCAD/Main/Using_GTFS_Data.htm
1. Basically just open the right network.
5. Choose only 1 network per mode if can (I use same network for Light Rail as Subway)
6. Select Create Schedules options and merge into one schedule.
7. Result is one RTS file with all the GTFS routes, stops, and schedules imported.
3. Check for accuracy - currently just a visual check of some routes. Since GTFS is in WGS-84, it should translate well onto the links. Especially given previous use of GTFS for Transit updates. We want to limit the amount of shape editing for consistency sake.
-
GTFS shapes exist on roadways not represented by links in the model network
-
Physical Stops Layer created
-
Stops created that are not connected to links
Potential Issues (Unconfirmed)
- Multiple links are within conflation threshold for GTFS shapes and the wrong one is chosen
- GTFS Shape Issue
- Select all lines in GTFS shapes not represented in model links - look at and decide whether they should be coded as links or if GTFS should be edited
- Compare with REMIX BNRD GTFS to determine if shapes should be coded as links
- Select all lines in imported GTFS shapes (matched to links) not represented in GTFS shapes and look to see if (a) and © resolves these issues.
- When creating networks, remove the option to use centroid connectors for bus routes (FC_Summ <> 9)
- Select all lines in GTFS shapes not represented in model links - look at and decide whether they should be coded as links or if GTFS should be edited
- Physical Stops Layer 4. Check if can not create in Import GTFS to Link Layer tool 5. Check if can delete post Import
- Unconnected Stops 6. See if (1) resolves this issue