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
- In the connection’s action menu, select Create Virtual Table and choose Transit Routes. In Configure Entity, keep
route_id,route_short_name, androute_long_namein the field mapping. Name the table after the network and finish creating it. - Open or create a Real-time Vehicles table for the same connection. When creating the table, keep
vehicle_idandroute_idin the field mapping. If an existing table uses a custom label for the route ID, use the field mapped fromroute_id.
Look up the reported route
- Open the vehicle record and copy its
route_id. - In the routes table, find the row with the same
route_id. Readroute_short_namefor the name or number riders usually see, androute_long_namefor the full name when available. For example,R_42could match public line42. 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
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?