Returns segment-level metrics for the specified geometry, filters, and date selection.
Specify exactly one of date, date_range, or date_ranges.
Truck mode (mode: truck): Requires weight_class. Uses US + agps with years 2023-2024 and OSM vintage 202302. See Available Metrics for truck field availability.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Returns metrics for StreetLight segments within your defined geometry. You can request many types of metrics and filter your results. For more information, see Available Metrics.
Queries to this endpoint count against your quotaSegments queried in calls to the Metrics endpoint count against your segment quota. Each row returned from the metrics endpoint counts against your segment quota, even if you are querying the same segments. Use the Segment Count endpoint to see how many segments will be in your query.
You can merge geometry data from the geometry endpoint with the metrics from the metrics endpoint to visualize the metrics for each segment with the following recipe: Fetch and merge to geojson
Use caution when using the nearest geometry type and a multi-month date selection to get metrics in situations that may have very low sample data, such as pedestrian travel mode with day_parts late at night. This may yield a different selection of segments being returned for each month/year.
Specify one of date, date_range, or date_ranges. For the agps data source, you can use date_ranges to request discontinuous months in a single call. Each range in the array must be disjoint (non-overlapping). You cannot combine months that map to different OSM vintages in one request.
When mode is truck, you must include weight_class, and data is limited to US + agps with years 2023 - 2024. See Truck metrics.
osm_vintage is optional for agps requests; when omitted, the server selects the vintage from your date or year.
