# Location Toolkit for AI agents > Location tools for AI agents, worldwide with extra depth for India: DIGIPIN (India Post) and Plus Code conversion, Indian PIN code lookup (all 19,500+ PINs and 165,000+ post offices), reverse lookup to nearest towns worldwide, postal code format checks for 240+ countries, distances, and AI address cleaning with PIN/district/state checks. Pay per call in USDC via x402 on Base. No signup, no API key. ## Free sample - The first 3 calls per day are free automatically. No header needed. After that the endpoint returns HTTP 402 with x402 payment details. ## Tools - POST https://location-toolkit.ameeras-official.workers.dev/code — Convert coordinates to DIGIPIN (India) and Plus Code (worldwide), or a code back to coordinates. Price 0.001 USDC. Example body: {"lat":13.0827,"lng":80.2707} - POST https://location-toolkit.ameeras-official.workers.dev/pincode — Look up an Indian PIN code: post offices, district, state, postal circle, centre coordinates and DIGIPIN. Price 0.002 USDC. Example body: {"pincode":"600040"} - POST https://location-toolkit.ameeras-official.workers.dev/reverse — Coordinates to nearest towns worldwide (town, region, country, distance), plus nearest PIN code inside India. Price 0.002 USDC. Example body: {"lat":51.5072,"lng":-0.1276} - POST https://location-toolkit.ameeras-official.workers.dev/postal-check — Check if a postal code has a valid format for any of 240+ countries (full lookup for India). Price 0.001 USDC. Example body: {"postal_code":"SW1A 1AA","country":"GB"} - POST https://location-toolkit.ameeras-official.workers.dev/distance — Distance and direction between two places given as coordinates, DIGIPIN, Plus Code or Indian PIN code. Price 0.001 USDC. Example body: {"from":"600040","to":"560001"} - POST https://location-toolkit.ameeras-official.workers.dev/address-clean — Clean a messy address from any country into structured fields, with India PIN, district and state checks. Price 0.005 USDC. Example body: {"address":"no 12, 2nd main rd, near water tank, anna nagar west, chennai 600040","country":"IN"} ## Accepted point formats - {"lat": 13.08, "lng": 80.27} or "13.08,80.27" - DIGIPIN (India only), e.g. 4P3-JK8-52C9 - Full Plus Code (worldwide), e.g. 7J4VXH8P+2C - 6-digit Indian PIN code (uses the PIN centre) ## Guarantees - Not charged if a PIN is unknown, a point cannot be resolved or the AI step fails. - Reverse lookup is town level, not a street address. Postal codes are never invented. ## Data credits - India Post All-India Pincode Directory (data.gov.in, Government Open Data License - India) - GeoNames, geonames.org (CC BY 4.0) - DIGIPIN: Department of Posts, Govt. of India (open specification); Plus Codes: Open Location Code by Google (Apache 2.0) - postal-codes-js (Apache 2.0) ## Links - MCP server (Streamable HTTP): https://location-toolkit.ameeras-official.workers.dev/mcp - Copy-paste examples (curl, Python, TypeScript, LangChain, CrewAI, n8n, MCP config): https://location-toolkit.ameeras-official.workers.dev/examples - Try it in a browser: https://location-toolkit.ameeras-official.workers.dev/try - OpenAPI: https://location-toolkit.ameeras-official.workers.dev/openapi.json - Agent card: https://location-toolkit.ameeras-official.workers.dev/.well-known/agent-card.json - Health: https://location-toolkit.ameeras-official.workers.dev/health