get
/api/v2/regional-travel-metrics/observed-counts/{id}
Python SDK method:
client.rtm.observed_counts(id=job_id).results()

Get observed counts results

Returns paginated observed counts rows for a completed observed counts job. Each row represents observed traversal counts for one zone/road-segment combination.

Altitude Help Center — getObservedCounts

Input Parameters

NameLocationTypeValuesDescriptionValue Required
idpathstring-Unique resource identifier.Y
pageTokenquerystring-Pagination token returned in the Link header of a previous response. Omit to fetch the first page.N

Success Responses

200 response: object

Paginated result data. When more pages are available, a Link: rel="next" header and Altitude-* pagination headers are included in the response.

NameTypeDescription
cardinalDirectionstringThe direction of the road segment in terms of 'N', 'NE', 'E', etc.
directioninteger (int64)The direction of travel of the road segment, either 1 or -1.
iso_3166_2stringThe ISO 3166:2 code of the zone.
noSegmentMonthsarray<string>An array of all months (represented as the first day of the month) for which the segment did not exist and there are no segment predecessors.
observedCountinteger (int64)The total observed count for this road segment. In the event that a road segment did not exist across the entire date range but Geotab has established a reasonable predecessor, the predecessor will be utilized.
observedCountByFuelTypearray<object>Array of objects representing the observed count of traversals and vehicles for each fuel type.
observedCountByIndustryarray<object>Array of objects representing the observed count of traversals and vehicles for each NAICS code 1.
observedCountByVehicleClassarray<object>Array of objects representing the observed count of traversals and vehicles for each vehicle class.
observedCountByVocationarray<object>Array of objects representing the observed count of traversals and vehicles for each vocation.
roadTypestringThe road type of the road segment.
segmentIdstringThe ID of the road segment for which observed counts are being reported.
usedSegmentHistorybooleanIndicates whether segment predecessors have been utilized (true) or not (false).
vehicleCountinteger (int64)The aggregate number of vehicles observed for the road segment, given the applied filters.
zoneCodestringRaw zone code (e.g. county FIPS, ZIP code, custom zone ID).
zoneIdstringEncoded zone identifier for use in subsequent API requests.
zoneNamestringDescription of the zone when available. The value is based on the type of zone: 'State' — state name, 'County' — county name, 'City' — city name, 'CTR' — census tract description, 'Segment' — road name if available, 'Custom' — custom zone name.
zoneTypestringThe zone type of the zone.

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.
404The requested resource does not exist.
409Result not yet ready. Poll the status monitor.
429The request rate limit has been exceeded.
500An unexpected server error occurred.