get
/api/v2/origin-destination/segments/{id}
Python SDK method:
client.origin_destination.segment(id=job_id).results()

Get OD segment analysis results

Returns paginated segment rows for a completed OD segment analysis job.

Altitude Help Center — getODSegmentAnalysis

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
asOfDatestring (date)Reference date for the segment row.
dailyJourneyCountAvgnumber (double)Average daily journey count.
geographyobjectGeoJSON segment geometry object.
journeyCountinteger (int64)Observed journey count.
journeyCountByIndustryarray<object>Journey count by industry.
journeyCountByVehicleClassarray<object>Journey count by vehicle class.
journeyCountByVocationarray<object>Journey count by vocation.
roadTypestringOSM road classification.
segmentIdstringRoad segment identifier.
segmentNamestringRoad segment display name.
zonePairIdstringOrigin-destination zone pair identifier.

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.