Geo haversine distance

geo-haversine-distance · version 1.0.0 · Geometry, location & color · free, no key needed

Compute the spherical great-circle distance between two latitude/longitude points and return it in the requested unit.

Use when you need to: haversine distance · great circle distance between coordinates · distance between two latitude longitude points.

Decide before calling

Read the versioned contract and the supported scope below. Reuse geo-haversine-distance@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use geo-haversine-distance@1.0.0 for haversine distance. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "lat1_deg": 0,
  "lon1_deg": 0,
  "lat2_deg": 0,
  "lon2_deg": 0,
  "unit": "m"
}

Response:

{
  "result": {
    "distance": 0,
    "unit": "m",
    "earth_radius_m": 6371008.8,
    "standard_version": "Sinnott-1984/IUGG-GRS80"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "geo-haversine-distance",
  "version": "1.0.0",
  "input": {
    "lat1_deg": 0,
    "lon1_deg": 0,
    "lat2_deg": 0,
    "lon2_deg": 0,
    "unit": "m"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/geo-haversine-distance/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"lat1_deg":0,"lon1_deg":0,"lat2_deg":0,"lon2_deg":0,"unit":"m"}'

The machine-readable contract is at /v1/tools/geo-haversine-distance/versions/1.0.0.

CLI

node cli.mjs run geo-haversine-distance 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.