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

  1. In the GTFS Transit connection’s actions menu, select Create Virtual Table and choose Transit Stops. Under Configure Entity, keep stop_name, stop_lat, and stop_lon in the field mapping. Finish creating the table and check a known stop.
  2. Repeat for Real-time Vehicles. Keep vehicle_id, latitude, and longitude. Keep timestamp if 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

  1. 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_lat and longitude to stop_lon. Select Add Layer.
  2. Add another table layer for vehicles. Select the same coordinate mode and use latitude and longitude. Give the layers distinct names and, if useful, choose different marker styles.
  3. 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

Diagnose missing GTFS vehicle positions on a map

Check the path of a scheduled GTFS trip in Open Data

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?