get
/api/v2/stop-analytics/hours-of-service-analytics/{id}
Python SDK method:
client.stop_analytics.hours_of_service_analytics(id=job_id).results()

Get hours of service analytics results

Returns aggregate hours of service information for a given set of parameters. The data insights returned from this endpoint can be used to assess stops for various use cases by leveraging the usage of different geographic aggregation modes.

Altitude Help Center - Stop Analytics API module

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
cycleStopCountInThresholdintegerThe number of hours of service stops where the cycle clock had between minHosClockRemaining and maxHosClockRemaining minutes remaining.
drivingStopCountInThresholdintegerThe number of hours of service stops where the driving clock had between minHosClockRemaining and maxHosClockRemaining minutes remaining.
geographyobjectA GeoJSON geometry object representing the zone. Only populated if includeGeography is set to true.
hosStopCountintegerThe number of stops in the zone made by vehicles reporting hours of service data.
hosStopCountInThresholdintegerThe number of hours of service stops where the driver's lowest remaining clock (driving, workday, or cycle) was between minHosClockRemaining and maxHosClockRemaining minutes.
iso_3166_2stringThe ISO 3166:2 code for the state or province associated with the output zone, where available.
vehicleCountintegerThe number of unique vehicles with hours of service stops in the zone.
workdayStopCountInThresholdintegerThe number of hours of service stops where the workday clock had between minHosClockRemaining and maxHosClockRemaining minutes remaining.
zoneCodestringRaw zone code as reported by the analytics backend. For aggregationMode 3 (H3) this is the raw H3 cell index; it is an analytical cell identifier only and cannot be submitted to /zones.
zoneIdstringEncoded Altitude zone identifier, reusable in other Altitude API requests. Populated for aggregationMode 0 (road segment) and 2 (standard or custom zone). Null for aggregationMode 3 (H3): H3 cells are analytical spatial buckets, not Altitude zones. Use zoneCode to read their raw cell identifier.
zoneNamestringDescription of the zone when available (e.g. county name, road name, or custom zone name). Null for H3 cells.
zoneSubTypestringThe zone type subclassification value. Based on aggregationMode: 0 - highway type (e.g. motorway, primary); 2 - null; 3 - H3 resolution level.
zoneTypestringThe type of the returned zone. Based on aggregationMode: 0 - 'Segment'; 2 - the standard or custom zone type; 3 - 'H3'.

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.