midpoint
Pack: coordinates · Endpoint: https://gateway.pipeworx.io/coordinates/mcp
Geographic (great-circle) midpoint between two lat/lon points.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat1 | number | yes | |
lon1 | number | yes | |
lat2 | number | yes | |
lon2 | number | yes |
Example call
Arguments
{
"lat1": 40.7128,
"lon1": -74.006,
"lat2": 34.0522,
"lon2": -118.2437
}
curl
curl -X POST https://gateway.pipeworx.io/coordinates/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"midpoint","arguments":{"lat1":40.7128,"lon1":-74.006,"lat2":34.0522,"lon2":-118.2437}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('midpoint', {
"lat1": 40.7128,
"lon1": -74.006,
"lat2": 34.0522,
"lon2": -118.2437
});
More examples
{
"lat1": 51.5074,
"lon1": -0.1278,
"lat2": 48.8566,
"lon2": 2.3522
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"coordinates": {
"url": "https://gateway.pipeworx.io/coordinates/mcp"
}
}
}
See Getting Started for client-specific install steps.