Home

Awesome

CapMetrics

This repo contains vehicle location data provided by Capital Metro. The data describing the routes, schedules etc is described by a standard format called GTFS. You can find the GTFS data describing the routes and schedules for CapMetro on their data portal.

NOTE: This project is no longer maintained sadly, and vehicle location data collection is suspended indefinitely.

Query this dataset on BigQuery!

I've loaded some of the data here from March 2015 to December 2015 onto a public dataset on Google BigQuery. Go check it out!

Available Data

The captured vehicle location data for each day is made available the next day under data/vehicle_locations. The data is available as CSV files. Do whatever you like, but please credit back here if you make something public.

How the data is collected

CapMetro publishes all of the instantaneous vehicle positions on their data portal here. I continously capture the live vehicle positions, store it in a database, and publish it the next day.

Data Format

At the moment, only vehicle positions are recorded.

Here's what their data looks like:

fielddescriptionGTFS-RT reference
vehicle_idID of the transit vehicleVehicleDescriptor
speedspeed of the vehicle when position was recordedPosition
longitudelongitude of vehicle when position was recordedPosition
latitudelatitude of vehicle when position was recordedPosition
route_idID of the route the vehicle is assigned toTripDescriptor
timestampMoment at which the vehicle's position was measured in the ISO 8601 format.ISO 8601
trip_idRefers to a trip from the GTFS feedTripDescriptor
dist_traveled DEPRECATED after 2015-09-30The distance (in miles) traveled by the vehicle along the shape of the current trip. If the shape for the trip is not available, this will be set to -1. This metric is not provided by CapMetro, so I calculate it as best I can (see the code).N/A