encode_geohash

Pack: geohash · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/encode_geohash for the schema, then POST the same URL with its arguments for the data.

Encode a latitude/longitude to a geohash string (keyless, offline). precision = number of characters (1-12, default 9; more chars = smaller cell).

Parameters

NameTypeRequiredDescription
latnumberyesLatitude (-90..90).
lonnumberyesLongitude (-180..180).
precisionnumbernoGeohash length 1-12 (default 9).

Example call

Arguments

{
  "lat": 40.7128,
  "lon": -74.006
}

curl

curl -X POST https://gateway.pipeworx.io/geohash/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"encode_geohash","arguments":{"lat":40.7128,"lon":-74.006}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('encode_geohash', {
  "lat": 40.7128,
  "lon": -74.006
});

More examples

{
  "lat": 51.5074,
  "lon": -0.1278,
  "precision": 6
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the geohash pack
{
  "mcpServers": {
    "geohash": {
      "url": "https://gateway.pipeworx.io/geohash/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 30, 2026