post
/api/v2/traffic/road-reverse-lookup
Python SDK method:
client.traffic.road_reverse_lookup(params).run()

Start road reverse lookup job

Creates a job to generate a road reverse lookup analysis. Given a set of zone IDs, identifies matching road segments and returns per-segment speed, travel-time, and vehicle breakdown metrics.

Altitude Help Center — getRoadReverseLookup

Request Body

Analysis parameters.

application/json: object

NameTypeInput ShapeValuesDescriptionValue Required
aggregationPeriodobjectunit: string; value: integer-Time interval used to group the results. Set unit to '*' for one summary of the whole period, or to 'hour', 'minute' or 'week' for a breakdown over time.Y
dateFromstring (date)--First date of the analysis range, formatted as yyyy-mm-dd.Y
dateTostring (date)--Last date of the analysis range (inclusive), formatted as yyyy-mm-dd.Y
daysOfWeekarray<integer>--Days of the week to include (1=Sunday … 7=Saturday). An empty array includes all days.N
excludeServiceRoadsboolean--When true, service road categories are excluded from results. Defaults to true when omitted.N
filterAndConditionboolean--When true, a segment must satisfy all supplied filters (AND logic); when false, satisfying any one filter is sufficient (OR logic).Y
isDirectionalboolean--When true, one record is returned per direction of travel; when false, results are averaged across both directions.Y
isMetricboolean--When true, speeds are returned in km/h; when false, in mph. Defaults to the unit setting in your user profile when omitted.N
jobIdstring--Optional identifier for the job. Generated by the server when omitted.N
percentilesarray<integer>--Percentile values to compute (1–99). Defaults to the 15th, 50th and 85th percentiles when omitted.N
roadTypesarray<string>-living_street, motorway, motorway_link, primary, primary_link, residential, road, secondary, secondary_link, service, tertiary, tertiary_link, trunk, trunk_link, unclassifiedRoad types to include. Must contain at least one value.Y
speedLimitFilterobjectfilterMode: string; filterValue: number-Filter on posted speed limit. Provide filterValue (any float) and filterMode ('greater' or 'less'). At least one filter field across all filter fields is required.N
spotSpeedFilterobjectfilterMode: string; filterType: string; filterValue: number-Filter on spot speed. Provide filterValue, filterMode ('greater' or 'less'), and filterType ('average' or 'median').N
spotSpeedPctOfFreeFlowFilterobjectfilterMode: string; filterValue: number-Filter on spot speed as a percentage of free-flow speed.N
spotSpeedPctOfSpeedLimitFilterobjectfilterMode: string; filterValue: number-Filter on spot speed as a percentage of the posted speed limit.N
spotSpeedPctOverSpeedLimitFilterobjectfilterMode: string; filterValue: number-Filter on the percentage of vehicle passes where spot speed exceeded the speed limit.N
timeFromstring--Start of the time-of-day window, formatted as hh:mm:ss. Defaults to 00:00:00 when omitted.N
timeTostring--End of the time-of-day window, formatted as hh:mm:ss.999. Defaults to 23:59:59.999 when omitted.N
travelSpeedFilterobjectfilterMode: string; filterType: string; filterValue: number-Filter on travel speed. Provide filterValue, filterMode ('greater' or 'less'), and filterType ('average' or 'median').N
travelSpeedPctOfFreeFlowFilterobjectfilterMode: string; filterValue: number-Filter on travel speed as a percentage of free-flow speed.N
travelSpeedPctOfSpeedLimitFilterobjectfilterMode: string; filterValue: number-Filter on travel speed as a percentage of the posted speed limit.N
travelSpeedPctOverSpeedLimitFilterobjectfilterMode: string; filterValue: number-Filter on the percentage of vehicle passes where travel speed exceeded the speed limit.N
vehicleClassIdsarray<string>--Vehicle class filter IDs from GET /api/v2/filters/vehicle-classes. IDs must use the scheme_vehicleClassIndex_categoryIndex format and share one scheme; IDs that do not name a known vehicle class are rejected. An empty array includes all vehicle classes.N
vehicleClassSchemeIdinteger-1, 2, 3, 4, 5, 6Vehicle classification scheme: 1 = VIUS, 2 = GVWR (FHWA), 3 = Truck Weight Classes, 4 = CARB, 5 = Gross Weight Group (custom scheme), 6 = Expansion Factors (custom scheme). Defaults to 2 when omitted. See GET /api/v2/filters/vehicle-class-schemes.N
vehicleClassesarray<object>vehicleType: string (values: Truck, Passenger, MPV, Bus, Limo, Other, n/a); weightClass: string (values: *, Class 1, Class 2, Class 3, Class 4, Class 5, Class 6, Class 7, Class 8, Class A, Class B, Class C, Class D, Class E, Class F, Class G, Class H)-Vehicle class filters. Use an empty array to include all vehicle classes.N
zoneIdsarray<string>--Zones to include, as encoded zone IDs. Provide exactly one of zoneIds or zones (not both).N
zonesarray<object>code: string; iso_3166_2: string; type: string (values: State, County, City, FSA, ZIP, TAZ, CTR, Custom, Segment)-Zones to include, each identified by a code, a zone type and a state or province code (iso_3166_2). Provide exactly one of zones or zoneIds (not both).N

Examples

County road reverse lookup request

Translated from the v1 getRoadReverseLookup sample.

{
  "aggregationPeriod": {
    "unit": "*",
    "value": 1
  },
  "dateFrom": "2026-01-01",
  "dateTo": "2026-01-07",
  "filterAndCondition": false,
  "isDirectional": true,
  "roadTypes": [
    "motorway"
  ],
  "speedLimitFilter": {
    "filterMode": "greater",
    "filterValue": 0
  },
  "zones": [
    {
      "code": "32003",
      "iso_3166_2": "US-NV",
      "type": "County"
    }
  ]
}

Success Responses

202 response: object

Job accepted and queued for processing. Poll the location header URL to check status.

NameTypeDescription
errorobjectDetails about why the job failed (RFC 7807 format), or null if it succeeded.
idstringUnique job identifier.
linksobjectNavigation URLs for polling and result retrieval.
statusstringCurrent job lifecycle state: PENDING, QUEUED, RUNNING, DONE, FAILED, CANCELED, or NOT_FOUND.

Response Errors

HTTP Status CodeReason
400The request body or parameters are invalid.
401Authentication is required or the provided credentials are invalid.
403The authenticated user lacks permission to perform this operation.
409The operation conflicts with the current state of the resource.
422The request is syntactically valid but semantically cannot be processed.
429The request rate limit has been exceeded.
500An unexpected server error occurred.