๐ Reverse DIGIPIN Lookup — Decode Location from a 10-Digit Code
After launching the DIGIPIN Generator that converts latitude and longitude into a unique 10-digit alphanumeric code, it’s time to introduce the much-awaited companion feature: DigiPin Reverse Lookup – Decode Lat/Long from DigiPin!
๐ What Is DIGIPIN Reverse Lookup?
The Reverse Lookup API lets you input a valid DIGIPIN like 39J-34T-T563
and get back the approximate latitude and longitude it represents.
This feature is helpful if you’ve been given a DIGIPIN but don’t know where it maps to geographically.
๐งช Example Request
POST /api/digipin/decode Content-Type: application/json { "digiPin": "39J-34T-T563" }
๐ฌ Example Response
{ "latitude": 28.6748, "longitude": 77.2187 }
๐ Live Demo (UI)
The public dashboard has been updated with a Reverse Lookup form, where users can paste their DIGIPIN and view the decoded coordinates. The UI is built using ASP.NET Core Razor Views with Bootstrap 5 styling.
Users can:
- Enter a DIGIPIN
- Submit and decode it instantly
- See the latitude and longitude
- Copy the coordinates using a one-click button
Here’s what the UI looks like:
๐ Input Validation & Messaging
The UI and API both validate inputs. A valid DIGIPIN must:
- Be exactly 10 characters long (excluding dashes)
- Use only supported characters
Feedback messages include:
DIGIPIN must be exactly 10 characters
DIGIPIN is invalid or could not be decoded
Latitude = 28.6748, Longitude = 77.2187
๐งฑ Technical Stack
- ✅ ASP.NET Core 9 Web API
- ✅ Razor Pages (MVC)
- ✅ JSON-based REST endpoints
- ✅ Bootstrap 5 styling
- ✅ JavaScript clipboard interaction
๐ก️ Privacy First
Just like the generator, no user data is stored. All lookups are processed in-memory and nothing is logged or saved to a database.
๐ Future Enhancements
- ๐บ️ Show decoded coordinates on a real-time map
- ๐ค Upload and decode multiple DIGIPINs in bulk
- ๐ Export results as CSV or PDF
- ๐ Add authentication and API rate limits
๐ฌ Feedback & Collaboration
I’d love to hear your feedback or suggestions! Feel free to explore:
Happy decoding! ๐
No comments:
Post a Comment