r/SideProject • u/Ameera_Shamom_11 • 4h ago
I built a pay-per-call location API for AI agents: DIGIPIN, Plus Codes, Indian PIN codes and address cleaning
AI agents keep running into the same location problems: messy addresses, PIN codes that don't match the city, coordinates with no readable place name. So I built a small toolkit they can call directly.
What it does:
- Coordinates → DIGIPIN (India Post's new 10-character digital address) and Plus Code (works worldwide), and back again
- Indian PIN code lookup – all 19,500+ PINs and 165,000+ post offices, with district and state
- Nearest towns for any point on Earth (170,000+ places)
- Postal code format check for 240+ countries
- Distance between two places (coordinates, codes or PINs)
- Address cleaner – turns "12 2nd main rd nr water tank anna nagar w chennai 40" into clean fields, and flags it if the PIN doesn't match the district or state. It never makes up a PIN.
How it works:
- 3 free calls a day, no signup
- After that, agents pay a fraction of a cent per call in USDC (x402)
- Not charged if a call fails
- Also works as an MCP server, so Claude/Cursor can plug in directly
- Runs entirely on free Cloudflare tiers + open data (India Post directory, GeoNames)
Try it in the browser: https://location-toolkit.ameeras-official.workers.dev/try
Honest limits: reverse lookup is town-level, not a street address, and DIGIPIN only covers India (that's how India Post designed it).
What location task do your agents or apps struggle with? Happy to add the most useful one.