encode_geohash
Pack: geohash · Endpoint: https://gateway.pipeworx.io/geohash/mcp
Encode a latitude/longitude to a geohash string (keyless, offline). precision = number of characters (1-12, default 9; more chars = smaller cell).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | yes | Latitude (-90..90). |
lon | number | yes | Longitude (-180..180). |
precision | number | no | Geohash 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, or use one-click install buttons:
{
"mcpServers": {
"geohash": {
"url": "https://gateway.pipeworx.io/geohash/mcp"
}
}
}
See Getting Started for client-specific install steps.