My Blog List

Showing posts with label digipin generator. Show all posts
Showing posts with label digipin generator. Show all posts

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! ๐ŸŒ

Thursday, June 5, 2025

DigiPin Generator – Powered by APIverse

๐Ÿ” Introducing DigiPin Generator – Powered by APIverse

In an increasingly digital world, accurately representing physical locations is critical — from deliveries and public services to smart city solutions. Enter DigiPin — a 10-character alphanumeric geocode that uniquely represents a latitude-longitude pair within India’s bounding box.

We are excited to share the DigiPin Generator API, built as part of the open-source APIverse project — a centralized API hub for reusable, modular microservices.


๐Ÿš€ What Is DigiPin?

DigiPin is a custom geolocation encoding system that takes in latitude and longitude coordinates and returns a compact, user-friendly code like:

39J-34T-T563

Unlike complex coordinates, this format is:

  • ✅ Easy to remember
  • ✅ Hard to mistype
  • ✅ Space-efficient
  • ✅ Consistent across levels of precision

It uses a quad-grid encoding method over India’s bounding box (Lat: 2.5–38.5, Lon: 63.5–99.5), refining precision over 10 levels.


๐Ÿ”ง What Is APIverse?

APIverse is our public .NET-based API platform where we plan to host various utility and productivity APIs. It is:

  • Built with .NET Core Web API
  • Fully modular and extensible

It currently hosts the DigiPin API, with more APIs planned.


๐Ÿ“ฌ How to Use the DigiPin API

Endpoint:

POST /api/digipin

Request:

{
  "latitude": 28.67,
  "longitude": 77.21
}

Response:

{
  "digiPin": "39J-34T-T563"
}

๐Ÿ’ป User Interface

To make it user-friendly, a public UI dashboard is also available at:
๐Ÿ‘‰ http://apiverse.runasp.net/

From this dashboard, users can:

  • Enter latitude & longitude
  • Generate and view DigiPins
  • Copy the result to clipboard
  • Access future APIs as they’re released

๐Ÿ” Security & Hosting

Both the API and UI are deployed using reliable ASP.NET hosting. We ensure:

  • Input validation
  • Logging for request tracking
  • Cross-origin support (CORS) for public web access

๐Ÿ” No Data Storage – Your Privacy Matters

We do not store any user data. No coordinates or DigiPins are saved or logged. The API is completely stateless and focused on real-time usage with full privacy.


๐Ÿ”ฎ What’s Next?

We're planning to integrate:

  • Reverse DigiPin decoding
  • Nearby DigiPin search
  • Additional public APIs under APIverse (e.g., utilities, geospatial, governance)

๐Ÿค Get Involved

APIverse is designed for public use and developer collaboration. Future updates and documentation will be shared as the project evolves.