Converts geohash strings back to latitude/longitude coordinates with precision bounds. Use via MCP in Cursor or Windsurf, or call GET /v1/geo/geohash-decode with the geohash parameter. Returns exact center coordinates plus bounding box — "9q5" decodes to approximately 37.265625, -121.640625 with ±2.8° precision.
curl "https://tinyfn.io/v1/geo/geohash-decode" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/geo/geohash-decode', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/geo/geohash-decode',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's geolocation tools:
{
"mcpServers": {
"tinyfn-geo": {
"url": "https://tinyfn.io/mcp/geo",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Send the geohash string to the decode endpoint. It returns the center coordinates and bounding box with precision bounds based on the geohash length.
Center coordinates are the exact midpoint of the geohash region. The bounding box shows the full area that geohash represents, with lat/lon min/max values.
Longer geohashes decode to smaller areas. A 5-character geohash covers ~4.9km × 4.9km, while 8 characters covers ~38m × 19m.
Yes, Claude Code and other MCP clients can decode geohashes to get precise coordinates for mapping, distance calculations, or geographic analysis tasks.
Invalid geohashes containing non-base32 characters or malformed strings will return an error. Only characters 0-9 and b,c,f,g,h,j,k,m,n,p,q,r,s,t,u,v,w,x,y,z are valid.
Get your free API key and start using Geohash Decode in seconds.
Get Free API Key