Identify the transit route for a reported vehicle

Look up a route’s public name or number by matching its GTFS route ID in the vehicle and schedule tables.

Use the route identifier reported with a vehicle position to find the line’s public name or number. Start with a GTFS connection that contains both the schedule ZIP and a real-time vehicle positions feed for the same network.

Prepare the lookup tables

  1. In the connection’s action menu, select Create Virtual Table and choose Transit Routes. In Configure Entity, keep route_id, route_short_name, and route_long_name in the field mapping. Name the table after the network and finish creating it.
  2. Open or create a Real-time Vehicles table for the same connection. When creating the table, keep vehicle_id and route_id in the field mapping. If an existing table uses a custom label for the route ID, use the field mapped from route_id.

Look up the reported route

  1. Open the vehicle record and copy its route_id.
  2. In the routes table, find the row with the same route_id. Read route_short_name for the name or number riders usually see, and route_long_name for the full name when available. For example, R_42 could match public line 42. GTFS Schedule route fields

If the vehicle’s route ID is blank, try another vehicle to check the mapping. A position report can omit the route identifier. If the ID is present but has no match, check that the schedule ZIP corresponds to the vehicle feed and contains the ID in routes.txt. Keep the route unconfirmed until you have an exact match. GTFS Realtime trip descriptor

Map stops and vehicle positions together

Filter scheduled GTFS routes by transit mode

Check GTFS service alerts for a route or stop

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?