CT DMV Wait Times
I noticed the CT DMV website offers wait time information but it doesn't do it in a time series format. This means we can only see a "snapshot" of wait times at the current moment, but can't evaluate any patterns over time. I built a simple app to store this wait time data over time, serve it over an API , and visualize it on a webapp.
- Deployment: Heroku
- Data scraping:
requestsjob every 5 minutes via Heroku Scheduler
- Backend: Python
djangoserving REST APIs via djangorestframework
The API is available using the following endpoints:
The raw wait time data, where each record represents a "wait time entry". A wait time entry is a particular wait time snapshot for a given branch and a given service service.
The aggregated wait time data, where the frequencies available are
daily. This returns mean wait times, or the number of people, waiting over a typical month (daily averages), a typical week (weekday averages), or a typical day (5-minute averages).
All API endpoints accept the following filters as GET parameters:
weekday: int (0: Monday, 7: Sunday)
branch: str (branch name, case insensitive contains)
service: str (service name, case insensitive contains)
date_before: str (subset data before, format: YYYY-MM-DD)
date_after: str (subset data after, format: YYYY-MM-DD)
If you would like to download the raw data, you can query the API directly. There are two additional GET parameters you can use:
format (csv, json)
page_size (0 to 5,000)
(Note the final two parameters)
All timestamps are returned in UTC time (generally this is 4 or 5 hours before UTC time).
This project is licensed under the terms of the MIT license. You can read more in the