Loading
Code Deb

Versioning Nepal Administrative Geography for Reliable Address Forms

Version Nepal province, district and local-level data for accurate address forms. Preserve identifiers, bilingual names, provenance and historical records.

Conceptual nested administrative divisions and versioned address records, not a geographic map of Nepal.

Nepal's locality names are not unique identifiers. Code Deb examined the 753 local-level records now bundled in its Nepal Geo SDK, and found that selecting an address by English municipality name alone is ambiguous even before transliteration or spelling differences enter the picture.

What the current bundled dataset actually contains

We parsed the repository's bilingual local-level snapshot imported on November 25, 2026, attributed to Abin Rimal's MIT-licensed Nepal Administrative Divisions JSON. The SDK maps it to internal province and district IDs. The National Statistics Office administrative-code reference is the government cross-check for the hierarchy; the imported snapshot is not itself a newly issued official code list.

Local-level typeRecords
Metropolitan6
Submetropolitan11
Municipality276
Rural municipality460
Total753

There are 753 distinct internal locality IDs, all 77 districts are represented, and 0 parent province/district inconsistencies were found against the bundled district table. The parent check establishes internal consistency, not independent accuracy against every current government record.

The surprising result: 22 repeated English-name groups

We normalized English labels with NFC, lowercase and trimming, then grouped them by exact equality. 22 groups appeared more than once. Madi and Tribeni each occur four times; Sunkoshi and Bagmati each occur three times. The method does not merge similar transliterations, so ambiguity under fuzzy search could be greater.

English label (normalized)Occurrences
madi4
tribeni4
sunkoshi3
bagmati3
budhiganga2
miklajung2
likhu2
mahalaxmi2

A name-only lookup cannot be made reliable by improving the dropdown design. The application needs the hierarchy and a stable ID. Display both locality and district in search results, and require a parent-constrained selection when constructing a business address.

A locality picker must retain the full parent relationship

// Illustrative database key, not an official NSO code.
type Address = {
  datasetVersion: string;
  provinceId: string;
  districtId: string;
  municipalityId: string;
  ward: number;
};
// On save: verify the full parent chain against that dataset.

The Nepal Geo SDK now includes bilingual province, district and local-level records. Its internal identifiers are not government codes. The source explicitly does not verify ward counts; do not claim ward-level validity from membership in the municipality table. Store the ward and locality as separate fields and consult an authoritative ward source where that precision is required.

Why a revision can break addresses without deleting a record

Renaming or transliterating a locality changes a search label, not necessarily its historical identity. An upstream code can be nonunique within the chosen namespace. Version the source, preserve aliases and compare snapshots for added, missing and reparented IDs before migrating. An invoice or KYC record should retain the label and dataset version applicable when it was created. Import reconciliation explains the general technique.

What our source audit did and did not verify

The province totals in this snapshot are Koshi 137, Madhesh 136, Bagmati 119, Gandaki 85, Lumbini 109, Karnali 79 and Sudurpashchim 88. They are counts of the inspected file, not a map of Nepal. We checked IDs, parent membership and repeated names, not boundary geometry, gazette changes or every spelling. The cover is conceptual, not cartographic. For bilingual forms, pair the hierarchy with phone and PAN normalization and translation versioning.

Method and reproducibility: Repository data inspection. See Code Deb's recorded experiment results and reproduction script in the repository. Figures are reproducible from declared inputs, not undisclosed client outcomes. The cited external material is independent of Code Deb's experiment.

More from Code Deb

Read about our agency, explore available services, or contact the team for a project discussion.