StreetLight Advanced Traffic Counts API

Commercial vehicle (truck) mode

You can now run Advanced Traffic Counts requests with mode: truck for commercial vehicle analysis in the US using the agps data source.

  • Truck mode is available in the Metrics, Segment Count, Geometry, and Date Ranges endpoints
  • Truck metrics cover 2023 and 2024
  • Truck metrics require weight_class: light_duty, medium_duty, or heavy_duty
  • New commercial vehicle fields are available, including route type, fuel type, industry, and in/out-of-state travel, plus travel time and reliability metrics. See Available Metrics for the full list.
  • Commercial attribute fields are returned when both day_type and day_part are set to all.

More flexible AGPS date and network selection

You can now request discontinuous months in a single Metrics call using the date_ranges parameter (for example January - March and October - December). Ranges cannot overlap, and months that use different OSM vintages cannot be combined in one request. Each Metrics requests can only have one of date, date_range, or date_ranges.

For agps requests, osm_vintage is now an optional parameter. If you do not specify it, the API selects the correct OSM network vintage based on your requested dates.