get
/api/v2/stop-analytics/stop-events/{id}
Python SDK method:
client.stop_analytics.stop_events(id=job_id).results()

Get stop events results

Returns paginated stop event rows for a completed stop analytics job. Each row represents one stop event for a vehicle in one zone.

Altitude Help Center — getStopAnalytics

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
geographyobjectA GeoJSON geometry object representing the zone. Only populated if includeGeography is set to true.
idleDurationAvgnumberThe average idle duration (minutes) before turning off ignition at the stop location.
idleDurationMednumberThe median idle duration (minutes) before turning off ignition at the stop location.
idleDurationPercentilesarray<object>Array of objects representing percentile idle duration values for input percentiles. If no percentiles are input, the 15th and 85th percentiles are provided by default.
idleDurationStdevnumberThe standard deviation of idle duration (minutes) before turning off ignition at the stop location.
isOneWaybooleanWhether the road segment is one-way (true) or not (false). A value of true or false is only returned when the zone type is Segment (aggregationMode 0). Null is returned for all other zone types.
iso_3166_2stringThe ISO 3166:2 code for the state or province associated with the output zone, where available.
postStopTripDistanceAvgnumberThe average distance (miles or kilometers) of the trip after the stop.
postStopTripDistanceMednumberThe median distance (miles or kilometers) of the trip after the stop.
postStopTripDistancePercentilesarray<object>Array of objects representing percentile trip distance values for the trip after the stop, for input percentiles. If no percentiles are input, the 15th and 85th percentiles are provided by default.
postStopTripDistanceStdevnumberThe standard deviation of distance (miles or kilometers) of the trip after the stop.
postStopTripDurationAvgnumberThe average duration (minutes) of the trip after the stop.
postStopTripDurationMednumberThe median duration (minutes) of the trip after the stop.
postStopTripDurationPercentilesarray<object>Array of objects representing percentile trip duration values for the trip after the stop, for input percentiles. If no percentiles are input, the 15th and 85th percentiles are provided by default.
postStopTripDurationStdevnumberThe standard deviation of duration (minutes) of the trip after the stop.
preStopTripDistanceAvgnumberThe average distance (in km or mi) of the trip leading to the stop.
preStopTripDistanceMednumberThe median distance (in km or mi) of the trip leading to the stop.
preStopTripDistancePercentilesarray<object>Array of objects representing percentile trip distance values for the trip leading up to the stop, for input percentiles. If no percentiles are input, the 15th and 85th percentiles are provided by default.
preStopTripDistanceStdevnumberThe standard deviation of distance (in km or mi) of the trip leading to the stop.
preStopTripDurationAvgnumberThe average duration (minutes) of the trip leading to the stop.
preStopTripDurationMednumberThe median duration (minutes) of the trip leading to the stop.
preStopTripDurationPercentilesarray<object>Array of objects representing percentile trip duration values for the trip leading up to the stop, for input percentiles. If no percentiles are input, the 15th and 85th percentiles are provided by default.
preStopTripDurationStdevnumberThe standard deviation of duration (minutes) of the trip leading to the stop.
stopCountintegerThe number of stop events occurring at the stop location.
stopDurationAvgnumberThe average stop duration (minutes).
stopDurationBinsarray<object>Array of objects representing count metrics for stop duration bins.
stopDurationMednumberThe median stop duration (minutes).
stopDurationPercentilesarray<object>Array of objects representing percentile stop values for input percentiles. If no percentiles are input, the 15th and 85th percentiles are provided by default.
stopDurationStdevnumberThe standard deviation of stop duration (minutes).
stopMetricsByDayOfWeekarray<object>Array of objects representing stop metrics for each day of week, based on the day of arrival at the stop location (local time).
stopMetricsByDirectionarray<object>Array of objects representing stop metrics for each direction of travel on a road segment. Only returned for aggregationMode 0.
stopMetricsByFuelTypearray<object>Array of objects representing stop metrics for each fuel type.
stopMetricsByHourarray<object>Array of objects representing stop metrics for each hour, based on the hour of arrival at the stop location (local time).
stopMetricsByHourParkedarray<object>Array of objects representing metrics for vehicles parked during each hour (local time). A parking event is included if it parked for any portion of the hour.
stopMetricsByIndustryarray<object>Array of objects representing stop metrics for each NAICS code 1.
stopMetricsByMontharray<object>Array of objects representing stop metrics for each month, based on the month of arrival at the stop location (local time).
stopMetricsByVehicleClassarray<object>Array of objects representing stop metrics for each vehicle class.
stopMetricsByVocationarray<object>Array of objects representing stop metrics for each vocation.
vehicleCountintegerThe number of unique vehicles contributing to the stop count.
vehicleCountTotalintegerThe total number of unique vehicles in the entire analysis (not just one zone).
vocationFilterarray<integer>User input vocation filter identifiers.
zoneCodestringRaw zone code as reported by the analytics backend. For aggregationMode 3 (H3), 4 (Geohash), and 5 (S2) this is the raw spatial cell key (e.g. an H3 index, geohash string, or S2 cell token); 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), 1 (related road), and 2 (standard or custom zone). Null for aggregationMode 3 (H3), 4 (Geohash), and 5 (S2): these are analytical spatial buckets, not Altitude zones, and have no encoded zoneId. Use zoneCode to read their raw cell identifier.
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. For all other zones, this attribute is null.
zoneSubTypestringThe zone type subclassification value. Based on aggregationMode: 0 — highway type (e.g. motorway, primary); 1 — related road highway type; 2 — null; 3 — H3 resolution level; 4 — Geohash string length; 5 — S2 cell level.
zoneTypestringThe type of the returned zone. Based on aggregationMode: 0 — 'Segment'; 1 — 'RelatedRoad'; 2 — standard or custom zone type; 3 — 'H3'; 4 — 'Geohash'; 5 — 'S2'.

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.