About DIGIPIN

The Department of Posts in India is advancing an initiative to establish a standardized, geo-coded addressing system in India, ensuring simplified addressing solutions for citizen-centric delivery of public and private services. This initiative is named the Digital Postal Index Number (DIGIPIN).

The Department has collaborated with IIT Hyderabad to develop a National Level Addressing Grid-based system. DIGIPIN divides India's geographical territory into uniform 4-meter by 4-meter units, assigning each a unique 10-digit alphanumeric code derived from the latitude and longitude coordinates of the unit.

This system will act as a strong and robust pillar of Geospatial Governance, enhancing public service delivery, improving emergency response times, and significantly boosting logistics efficiency. The advent of DIGIPIN marks a revolutionary step in India's digital transformation journey by bridging the gap between physical locations and their digital representation.

The Department is releasing a beta version of the National Level Addressing Grid ‘DIGIPIN’ for public feedback. Industry leaders, technical institutes, state and local governments, and the public are encouraged to participate and provide their valuable input to fine-tune the specifications of DIGIPIN.

For more information, visit the India Post DIGIPIN page.

Credits

The Digipin project is developed in collaboration with the Department of Posts and IIT Hyderabad.


This application only provides a demo of the Digipin system and is not affiliated with the Department of Posts or IIT Hyderabad.

Want to Implement DIGIPIN in Your Project?

You can easily integrate DIGIPIN into your project by installing the DIGIPIN NPM package. This package allows you to convert latitude and longitude coordinates into a DIGIPIN code and vice versa, making it a crucial tool for geospatial applications.

Installation

npm install digipin

Usage

To use the DIGIPIN NPM package, import the package and use the provided functions to convert between latitude/longitude and DIGIPIN codes.

import digipin from 'digipin';

const lat = 28.6139;
const lon = 77.2090;

const digipinCode = digipin.getDIGIPINFromLatLon(lat, lon);
console.log(digipinCode); // Output: Example DIGIPIN code

const coordinates = digipin.getLatLonFromDIGIPIN(digipinCode);
console.log(coordinates); // Output: { latitude: 28.6139, longitude: 77.2090 }

Contributing

Contributions are welcome! Please fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for details.