nepal-places
v0.3.0
Published
Zero-dependency Nepal geographical data — Provinces, Districts, Municipalities, Wards. Works with React, Node.js, any JS framework.
Maintainers
Readme
nepal-places
Zero-dependency data package for Nepal's geographical divisions. Provinces, Districts, Municipalities, Wards, and Places — with bilingual (Nepali/English) names.
npm install nepal-placesUsage
import { getProvinces, getDistricts, getMunicipalities, getWards, getPlaces } from 'nepal-places'
// All provinces
getProvinces()
// → [{ id: 1, name: 'Koshi', name_np: 'कोशी प्रदेश' }, ...]
// Districts in a province
getDistricts(1)
// Municipalities in a district
getMunicipalities(14)
// Wards in a municipality
getWards(178)
// Places in a ward
getPlaces(1)
// Full hierarchy from a code
getHierarchy({ code: '3/14/178/1' })
// → { province: {...}, district: {...}, municipality: {...}, ward: {...}, places: [...] }Data structure
| Level | Count | Nepali names | |-------|-------|-------------| | Province | 7 | 7/7 (100%) | | District | 77 | 77/77 (100%) | | Municipality | 753 | 753/753 (100%) | | Ward | 6,741 | 753/753 municipalities | | Place | 10,000+ | Collecting |
Places data is being collected ward by ward and is partially complete.
API
See the full documentation.
License
MIT — kushal1o1
