Open-source API for DigiPin - India's National Level Addressing Grid
DigiPin (Digital Postal Index Number) is India's revolutionary addressing system developed by the Department of Posts, Government of India. It's a game-changing technology that transforms how we identify and locate places across the country.
39J-49L-L8T4DigiPin uses a hierarchical grid system that progressively narrows down locations:
Example: Dak Bhawan, New Delhi has DigiPin 39J-49L-L8T4, which pinpoints its
exact location within a 3.8m Γ 3.8m area!
Encode latitude/longitude coordinates to DigiPin code
?lat=28.622788&lon=77.213033
Decode DigiPin code to latitude/longitude coordinates
?digipin=39J-49L-L8T4
Convert latitude/longitude coordinates to DigiPin code:
# Using curl
curl "https://digipin.pratikbutani.com/api/v1/digipin/encode?lat=28.622788&lon=77.213033"
# Using browser
https://digipin.pratikbutani.com/api/v1/digipin/encode?lat=28.622788&lon=77.213033
Convert DigiPin code back to latitude/longitude coordinates:
# Using curl
curl "https://digipin.pratikbutani.com/api/v1/digipin/decode?digipin=39J49LL8T4"
# Using browser
https://digipin.pratikbutani.com/api/v1/digipin/decode?digipin=39J49LL8T4
Additional utility endpoints for API information and health checks:
# Health Check
curl "https://digipin.pratikbutani.com/health"
# API Information
curl "https://digipin.pratikbutani.com/api/v1/info"
# Working Example
curl "https://digipin.pratikbutani.com/api/v1/example"
Built entirely using Warp Terminal with AI assistance - 100% without writing a single line of code manually!
This is NOT an official API. This is an experimental project created for testing and educational purposes only. DigiPin is an official system developed by the Department of Posts, Government of India. This API is built purely for "vibe coding" and demonstration purposes.