Map GTFS stops and vehicle positions together
Use one layer for scheduled stops and another for reported vehicle positions, then check both on the same map.
Use one map to see where a transit agency’s vehicles are reported relative to its stops. Start with a GTFS connection that has both a static schedule ZIP and a real-time vehicle positions feed.
Prepare the two virtual tables
- In the GTFS Transit connection’s actions menu, select Create Virtual Table and choose Transit Stops. Under Configure Entity, keep
stop_name,stop_lat, andstop_lonin the field mapping. Finish creating the table and check a known stop. - Repeat for Real-time Vehicles. Keep
vehicle_id,latitude, andlongitude. Keeptimestampif you need to check when a position was reported. Open the table and confirm that it contains positions before adding its map layer.
Add the layers and check the points
- Open or create a saved map. In Layers, select Add Layer → Table Layer and choose the stops table. Under Coordinate Input Mode, select Separate Lat/Lng Fields and set latitude to
stop_latand longitude tostop_lon. Select Add Layer. - Add another table layer for vehicles. Select the same coordinate mode and use
latitudeandlongitude. Give the layers distinct names and, if useful, choose different marker styles. - Zoom to an area served by the agency. Select a known stop and a vehicle marker, then compare the details with their tables. Check the vehicle’s timestamp when it’s available.
If stops appear but vehicles are missing, check whether the Real-time Vehicles table currently has rows with positions. If the table has the records you expect, refresh the map and check the layer.
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 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?