ug-locale
Version:
Uganda districts, sub-counties, counties, parishes and villages
17 lines (11 loc) • 478 B
JavaScript
const UgaLocale = require(".")();
const district = UgaLocale.districts().find((d) => d.id === "42");
console.log("district", district);
const county = UgaLocale.counties(district.id);
console.log("county", county);
const subCounty = UgaLocale.subCounties(county[3].id);
console.log("subCounty", subCounty);
const parish = UgaLocale.parishes(subCounty[0].id);
console.log("parish", parish);
const village = UgaLocale.villages(parish[0].id);
console.log("village", village);