Street routing
Calculate a convergence point
Find the point where routes from several locations converge with least total cost. Takes the same request as /route. trip is the route from the first location to that point, and alternates holds the routes from each of the other locations to the same point, in request order.
post/valhalla/centroid
Request
- Base URL: https://transit.land/api/v2/routing
- URL: https://transit.land/api/v2/routing/valhalla/centroid
- 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",
"locations": [
{
"preferred_side": "opposite",
"search_filter": {
"max_road_class": "primary",
"min_road_class": "primary"
},
"street_side_cutoff": "primary",
"type": "break"
}
],
"shape_format": "polyline6"
}Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.