Centroid
centroidAverage (spherical) center of a list of lat/lon points. points is an array of {lat, lon}.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"points": [
{
"lat": 40.7128,
"lon": -74.006
},
{
"lat": 34.0522,
"lon": -118.2437
},
{
"lat": 41.8781,
"lon": -87.6298
}
]
},
"name": "centroid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Array of {lat, lon} objects. |