Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

yeshewasG/ethiopian-locations

Domaine:

geospatial

Type de record:

software
Créateur:
yes
Hôte:
# ethiopian-location A TypeScript package for Ethiopian regions, zones, and woredas hierarchy with fast lookup and caching. ## Features - Get all regions of Ethiopia - Get zones by region - Get woredas by zone - Full hierarchical structure: regions → zones → woredas - Fast lookup with in-memory caching - TypeScript types included --- ## Installation ```bash npm install ethiopian-location ``` ## Usage Import the functions from the package: ```typescript import { getRegions, getZonesByRegion, getWoredasByZone, getHierarchy, } from "ethiopian-location"; ``` 1. Get all regions ```typescript const regions = getRegions(); console.log(regions); ``` Example output: ```json [ { "id": "ET01", "name": { "en": "Tigray" }, "latLong": [14.0, 38.0] }, { "id": "ET02", "name": { "en": "Afar" }, "latLong": [11.5, 40.0] } ] ``` 2. Get zones by region ```typescript const zones = getZonesByRegion("ET01"); console.log(zones); ``` Example output: ```json [ { "id": "ET0101", "regionId": "ET01", "name": { "en": "Mekelle" }, "latLong": [13.5, 39.0] } ] ``` 3. Get woredas by zone ```typescript const woredas = getWoredasByZone("ET0101"); console.log(woredas); ``` Example output: ```json [ { "id": "ET010101", "zoneId": "ET0101", "name": { "en": "Tahtay Adiyabo" }, "latLong": [14.44, 37.67] } ] ``` 4. Get full hierarchy (regions → zones → woredas) ```typescript const hierarchy = getHierarchy(); console.log(JSON.stringify(hierarchy, null, 2)); ``` Example output: ```json [ { "id": "ET01", "name": { "en": "Tigray" }, "latLong": [14.0, 38.0], "zones": [ { "id": "ET0101", "regionId": "ET01", "name": { "en": "Mekelle" }, "latLong": [13.5, 39.0], "woredas": [ { "id": "ET010101", "zoneId": "ET0101", "name": { "en": "Tahtay Adiyabo" }, "latLong": [14.44, 37.67] } ] } ] } ] ``` ## API Reference 1. getRegions(): Region[]Returns all Ethiopian regions. 2. getZonesByRegion(regionId: string): Zone[]Returns zones belonging to a given region. 3. getWoredasByZone(zoneId: string): Wor …

Visit

github.com

Languages

AmharicKunamaTigrigna

Similaires

eHealthAfrica/locationsDevPrinceK/gh-locationsliksoft/togo-locationsCassimClick/tanzania-locationsdavidamunga/kenya-locationsLucignation/nigeria-locations

eHealthAfrica/locations

JSON files listing locations in Sierra Leone, Liberia, Guinea and Mali ## locations JSON files lis

DevPrinceK/gh-locations

A simple flutter packge that lists the regions, and districts in ghana in a dropdown. It can also fi

liksoft/togo-locations

Base de localisation (hiérarchie Pays → Région → Préfecture → Commune / Ville → Quartier, avec les d

CassimClick/tanzania-locations

# Tanzania Locations Offline Tanzania location data — **Region → District → Ward → Postcode** — as

davidamunga/kenya-locations

A comprehensive and intuitive package for Kenyan administrative divisions (counties, constituencies,

Lucignation/nigeria-locations

# Locations in Ngeria This package can easily be used with react project within form tag to ge