get
/api/v2/traffic/harsh-events/{id}
Python SDK method:
client.traffic.harsh_events_per_segment(id=job_id).results()

Get harsh events per segment results

Returns paginated harsh event metric rows per road segment for a completed harsh events per segment analysis job.

Altitude Help Center — getHarshEventsPerSegment

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
accelerationEventsPerTenThousandTripsnumber (double)The count of acceleration harsh events along a road segment per 10,000 vehicle traversals.
brakingEventsPerTenThousandTripsnumber (double)The count of braking harsh events along a road segment per 10,000 vehicle traversals.
cardinalDirectionstringThe direction of the road segment in terms of 'N', 'NE', 'E', etc.
corneringEventsPerTenThousandTripsnumber (double)The count of cornering harsh events along a road segment per 10,000 vehicle traversals.
directioninteger (int64)Indicates the direction of traffic flow in relation to the definition of the segment geography. For directional analysis: 1 indicates traffic in the direction of the segment; -1 indicates the opposite direction. For non-directional analysis: value is always 0.
harshEventsByHourarray<object>Array of objects representing the observed count of harsh events by hour.
harshEventsByIndustryarray<object>Array of objects representing the observed count of harsh events by industry.
harshEventsByMagnitudearray<object>Array of objects representing the observed count of harsh events by magnitude bins.
harshEventsByVehicleClassarray<object>Array of objects representing the observed count of harsh events by vehicle class.
harshEventsByVocationarray<object>Array of objects representing the observed count of harsh events by vocation.
harshEventsPerTenThousandTripsnumber (double)The count of total harsh events along a road segment per 10,000 vehicle traversals.
observedAccelerationEventsinteger (int64)The count of acceleration based harsh events along a road segment for the given time.
observedBrakingEventsinteger (int64)The count of braking based harsh events along a road segment for the given time.
observedCorneringEventsinteger (int64)The count of cornering based harsh events along a road segment for the given time.
observedCountinteger (int64)The aggregate number of observed vehicle traversals for the road segment, given the applied filters.
observedHarshEventsinteger (int64)The count of total harsh events along a road segment for the given time.
roadTypestringOSM road type.
segmentIdstringThe ID of the road segment.
segmentLengthnumber (double)The length of the segment in metric units (kilometers) or imperial units (miles) based on the value of isMetric.

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.