DIGIPIN Generator and Decoder Workflow

somdn_product_page

This n8n workflow enables seamless generation and decoding of DIGIPINs—India Post’s geolocation encoding system—using JavaScript functions without external APIs. The process begins with webhooks that trigger either DIGIPIN creation or decoding based on URL query parameters. The ‘Generate DIGIPIN’ webhook accepts latitude and longitude inputs, then executes a script that encodes these coordinates into a 10-character alphanumeric DIGIPIN, following a defined grid and subdivision logic. Conversely, the ‘Decode DIGIPIN’ webhook takes a DIGIPIN string, processes it through a decoding script that identifies grid characters and calculates geographic coordinates, effectively reverse-engineering the location. The workflow includes switch nodes that evaluate success conditions and return appropriate JSON responses, either confirming the generated or decoded data or reporting errors. Practical use cases include location-based services such as digital addresses, last-mile delivery, check-in systems, or location sharing solutions tailored to environments within India.

Node Count

11 – 20 Nodes

Nodes Used

code, respondToWebhook, stickyNote, switch, webhook

Reviews

There are no reviews yet.

Be the first to review “DIGIPIN Generator and Decoder Workflow”

Your email address will not be published. Required fields are marked *