routing

Finds the least-cost meeting point of several locations (see module docs).

post/centroid

Request

  • Base URL: https://api.mapmap.ai
  • URL: https://api.mapmap.ai/centroid
  • Auth: one of:
    • HTTP bearer
    • API key in query parameter api_key

Request body

object required

Response

A Valhalla route response: trip is the path from locations[0] to the centroid, and each alternates[i] is the path from locations[i+1] to the SAME centroid; every path's last location shares an identical lat/lon, which is the meeting point. costing (e.g. truck) applies identically to every participant's path

object required

Changes

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