Street routing
Match a GPS trace to a route
Match a sequence of coordinates to the road network and return the matched route with turn-by-turn directions.
post/valhalla/trace_route
Request
- Base URL: https://transit.land/api/v2/routing
- URL: https://transit.land/api/v2/routing/valhalla/trace_route
- 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"
}Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.