Street routing
Get attributes along a GPS trace
Match a sequence of coordinates to the road network and return attributes along the matched path, such as speed limits, road class, and surface type.
post/valhalla/trace_attributes
Request
- Base URL: https://transit.land/api/v2/routing
- URL: https://transit.land/api/v2/routing/valhalla/trace_attributes
- Auth: one of:
- API key in header apikey
- API key in query parameter apikey
Request body
Example request
{
"costing": "auto",
"exclude_locations": [
{
"preferred_side": "opposite",
"search_filter": {
"max_road_class": "primary",
"min_road_class": "primary"
},
"street_side_cutoff": "primary",
"type": "break"
}
],
"format": "json",
"shape": [
{
"preferred_side": "opposite",
"search_filter": {
"max_road_class": "primary",
"min_road_class": "primary"
},
"street_side_cutoff": "primary",
"type": "break"
}
],
"shape_format": "polyline6",
"shape_match": "walk_or_snap",
"filters": {
"action": "exclude"
}
}Response
Successful response
Example response
{
"admins": [
{
"country_code": "US",
"country_text": "United States",
"state_code": "CA",
"state_text": "California"
}
],
"alternate_paths": [
{
"admins": [
{
"country_code": "US",
"country_text": "United States",
"state_code": "CA",
"state_text": "California"
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.