DEV Community

2x lazymac
2x lazymac

Posted on

Geohash Encode/Decode API - REST + MCP, Free Tier

Geohash Encode/Decode API

Encode lat/lng to geohash strings and decode back. Supports precision 1-12. Ideal for location clustering, proximity search, and geo-indexing.

Quick Start

# Health check
curl https://api.lazy-mac.com/geohash-api/health

# API info
curl https://api.lazy-mac.com/geohash-api
Enter fullscreen mode Exit fullscreen mode

Endpoints

  • {'path': '/encode', 'method': 'GET', 'description': 'Encode lat/lng to geohash'}
  • {'path': '/decode', 'method': 'GET', 'description': 'Decode geohash to lat/lng'}
  • {'path': '/neighbors', 'method': 'GET', 'description': 'Get 8 neighboring geohash cells'}
  • {'path': '/health', 'method': 'GET', 'description': 'Health check'}

Pricing

Plan Price Features
Free $0/mo 100 req/day, core endpoints
Pro $Free/mo Unlimited, all endpoints, MCP

MCP Integration

This API supports the Model Context Protocol (JSON-RPC 2.0):

curl -X POST https://api.lazy-mac.com/geohash-api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Enter fullscreen mode Exit fullscreen mode

Get Your API Key

Get started on Gumroad — free tier available.


Built by lazymac | All APIs

Top comments (0)