Geo Distance & Coordinates

live GeographyUtility

Offline geodesy (keyless): great-circle (haversine) distance & bearing between lat/lon points, destination-point projection, and DMS <-> decimal coordinate conversion.

4 tools
0ms auth
free tier 50 calls/day

Tools

distance

Great-circle (haversine) distance between two lat/lon points. Returns the distance in km, miles, nautical miles, meters & feet, plus the initial compass bearing from point 1 to point 2.

No parameters required.

Try it
destination

Given a start lat/lon, a bearing (degrees) and a distance, compute the destination point. `unit` = km (default), mi, nmi, m or ft.

No parameters required.

Try it
dms_to_decimal

Parse a degrees-minutes-seconds coordinate string to decimal degrees. Accepts forms like "40°26′46″N" or "40 26 46 N" or "-73.5". Returns the decimal value.

No parameters required.

Try it
decimal_to_dms

Convert decimal lat/lon to degrees-minutes-seconds strings.

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/geodistance/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/geodistance/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"distance","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("distance", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("offline geodesy (keyless): great-circle (haversine) distance & bearing between lat/lon points, destination-point projection, and dms <-> decimal coordinate conversion");