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

  1. 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.
  2. In Configure Entity, keep route_type, route_id, and the names you want to display, such as route_short_name and route_long_name. Create the table and confirm that a known route has a value for route_type.

Filter the routes and check a match

  1. In the table, open Filter and add an equality condition on route_type. Use the mapped column if its label differs.
  2. Enter the numeric code for the mode you need. For example, 0 matches tram or light rail, 1 matches subway or metro, 3 matches bus, and 4 matches ferry. GTFS Schedule route reference
  3. 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.

Identify the transit route for a reported vehicle

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy 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?