My Blog List

Wednesday, June 25, 2025


DigiPin Reverse Lookup – Decode Lat/Long from DigiPin

๐Ÿ”„ 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.

๐Ÿ”— Try Reverse Lookup UI

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