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

Get observed counts time series results

Returns paginated time-series observed counts rows for a completed observed counts time-series child analysis. Each row represents traversal counts for one zone at one aggregation-unit bucket. To generate time series, set generateTimeSeries parameter to true on the original analysis along with aggregationUnits.

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
aggregationUnitstringThe time-based unit by which to aggregate data (e.g. 'Hour', 'HourOfDay', 'DayOfWeek', 'Day', 'Month').
aggregationValuestringThe associated AggregationUnit value. Format: hour — 0–23; hourofday — YYYY-MM-DDTHH:00:00; dayofweek — 1–7; day — YYYY-MM-DD; month — 1–12.
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 for which the segment did not exist and there are no segment predecessors.
observedCountinteger (int64)The total observed count for this aggregation bucket.
observedCountByFuelTypearray<object>Array of objects representing the observed count of traversals and vehicles for each fuel type.
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 this aggregation bucket.
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.