Skip to main content

Create an offline DIGIPIN microservice API for precise location mapping in India

Workflow preview

Workflow preview
100%
Create an offline DIGIPIN microservice API for precise location mapping in India preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. What is DIGIPIN? DIGIPIN (Digital Pincode) is a 10 character alphanumeric code introduced by Ind...

Best for

  • Engineering automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.respondtowebhook, n8n-nodes-base.switch, n8n-nodes-base.code, n8n-nodes-base.webhook, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Srinivasan KB.

Original n8n.io source

1.1 Workflow description

Title
Create an offline DIGIPIN microservice API for precise location mapping in India
Workflow name
Create an offline DIGIPIN microservice API for precise location mapping in India

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

What is DIGIPIN? DIGIPIN (Digital Pincode) is a 10-character alphanumeric code introduced by India Post. It maps any 3x3 meter square in India to a unique digital address. This helps precisely locate homes, shops, or landmarks, especially in areas where physical addresses are inconsistent or missing.

What this workflow does This workflow creates a fully offline DIGIPIN microservice using only JavaScript - no external APIs are used.

You get two HTTP endpoints:

  • GET /generate-digipin?lat={latitude}&lon={longitude} → returns a DIGIPIN
  • GET /decode-digipin?digipin={code} → returns the latitude and longitude

You can plug this into any system to:

  • Convert GPS coordinates to a DIGIPIN
  • Convert a DIGIPIN back to coordinates

How it works

  1. An HTTP Webhook node receives the request
  2. A JS Function node either encodes or decodes based on input
  3. The result is returned as a JSON response

All the logic is handled inside the workflow - no API keys, no external calls.

Why use this

  • Fast and lightweight
  • Easily extendable: you can connect this to forms, CRMs, apps, or spreadsheets
  • Ideal for field agents, address validation, logistics, or rural operations

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Respond to Webhook - Success

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 2 - Respond to Webhook - Error

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 3 - Switch - Check for Success

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 4 - DIGIPIN_Generation_Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - DIGIPIN_Decode_Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Encode_Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 7 - Decode_Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 8 - Switch 2 - Check for Success1

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 9 - Respond to Webhook - Success 2

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 10 - Respond to Webhook - Error 2

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Create an offline DIGIPIN microservice API for precise location mapping in India
Complexity intermediate
Nodes 12
Categories Engineering
Author Srinivasan KB
Published 10 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5836/5836.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create an offline DIGIPIN microservice API for precise location mapping in India do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. What is DIGIPIN? DIGIPIN (Digital Pincode) is a 10 character alphanumeric code introduced by Ind...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering use case.