DIGIPIN (Digital PIN) is a 10-character alphanumeric geocode developed by the Department of Posts, India. It provides a precise, user-friendly way to encode geographic coordinates that can be easily shared and decoded back to latitude/longitude pairs.
This open-source Java project presents a public .jar package to generate and decode DIGIPINs, supporting geolocation services, postal logistics, and spatial analysis applications.
The Department of Posts, India, has published a technical document detailing DIGIPIN and how it works.
To use this library in your Maven project:
- Add the GitHub Packages repository
- Add the dependency to your
pom.xml
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/humaidkidwai/Digipin-Java</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.github.humaidkidwai</groupId>
<artifactId>digipin</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
To download this package, Maven must authenticate with GitHub Packages.
Add the following to your ~/.m2/settings.xml:
<servers>
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_GITHUB_PAT</password>
</server>
</servers>