Filter scheduled GTFS routes by transit mode
Use the mode code published in the schedule to show routes for one type of transit in a virtual table.
Use the route_type field when you need to compare routes of the same mode, such as buses in a feed that also includes light rail.
Find the mode field in Transit Routes
- Open the agency’s Transit Routes table. If you need to create it, start from the GTFS connection for the agency’s schedule ZIP. Select Create Virtual Table, then Transit Routes.
- In Configure Entity, keep
route_type,route_id, and the names you want to display, such asroute_short_nameandroute_long_name. Create the table and confirm that a known route has a value forroute_type.
Filter the routes and check a match
- In the table, open Filter and add an equality condition on
route_type. Use the mapped column if its label differs. - Enter the numeric code for the mode you need. For example,
0matches tram or light rail,1matches subway or metro,3matches bus, and4matches ferry. GTFS Schedule route reference - Check a familiar route’s ID and name against the agency’s schedule to confirm that the view contains the mode you intended.
If a route is missing, clear other filters and find its route_id in the agency’s schedule. Check the published route_type. The Mainbase connector skips route rows with a value outside the range 0–12.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?