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.

get/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

Query parameters

The request object, url-encoded. Identical to the POST body. Encode spaces as %20, or send the JSON without spaces. The API does not decode + as a space and rejects the request as unparseable.

Response

Successful response

idstring

The request's id, echoed back. Absent when the request has none.

Changes

No recorded changes to this operation across all 1 revision of this API.