Mayfly - Traffic Data Archive

This site is for the distribution of traffic data collected by the IRIS traffic management system.

Path Response Body
/mayfly/districts List of districts in the archive
/mayfly/years List of years with traffic data
/mayfly/dates List of dates with traffic data in a year
/mayfly/corridors List of corridors configured on a given date
/mayfly/nodes List of nodes on a corridor on a given date
/mayfly/detectors List of detectors with traffic data on a given date
/mayfly/counts Vehicle count data for one detector on a given date
/mayfly/speed Speed data (mph) for one detector on a given date
/mayfly/headway Headway data (ms) for one detector on a given date
/mayfly/occupancy Occupancy data (%) for one detector on a given date
/mayfly/length Length data (ft) for one detector on a given date

All response bodies are JSON arrays.


Path /mayfly/districts
Query Params N/A
Example URI /mayfly/districts

Path /mayfly/years
Query Params districtdefault tms
Example URI /mayfly/years?district=d3

Path /mayfly/dates
Query Params districtdefault tms
year4 digits
Example URI /mayfly/dates?year=2021

Path /mayfly/corridors
Query Params districtdefault tms
date8 digits yyyyMMdd
Example URI /mayfly/corridors?date=20210109

Path /mayfly/nodes
Query Params districtdefault tms
date8 digits yyyyMMdd
corridoridentifier
Example URI /mayfly/nodes?date=20210415&corridor=94_EB

Path /mayfly/detectors
Query Params districtdefault tms
date8 digits yyyyMMdd
Example URI /mayfly/detectors?date=20210314

Path /mayfly/counts
Query Params districtdefault tms
date8 digits yyyyMMdd
detectoridentifier
Example URI /mayfly/counts?date=20210225&detector=363

Path /mayfly/speed
Query Params districtdefault tms
date8 digits yyyyMMdd
detectoridentifier
Example URI /mayfly/speed?date=20210225&detector=363

Path /mayfly/headway
Query Params districtdefault tms
date8 digits yyyyMMdd
detectoridentifier
Example URI /mayfly/headway?date=20210225&detector=363

Path /mayfly/occupancy
Query Params districtdefault tms
date8 digits yyyyMMdd
detectoridentifier
Example URI /mayfly/occupancy?date=20210225&detector=363

Path /mayfly/length
Query Params districtdefault tms
date8 digits yyyyMMdd
detectoridentifier
Example URI /mayfly/length?date=20210225&detector=363

Additional query filter parameters are available for the following paths:

Query Params length_ft_min Minimum vehicle length filter
length_ft_max Maximum vehicle length filter (non-inclusive)
speed_mph_min Minimum vehicle speed filter
speed_mph_max Maximum vehicle speed filter (non-inclusive)
headway_sec_min Minimum headway filter
headway_sec_max Maximum headway filter (non-inclusive)

These can be used, for example, for vehicle classification. Adding length_ft_min=7&length_ft_max=19 to a query will return data for vehicles in that length range.