Skip to content

About

Open geographic data for Algeria: 30 npm packages, 83,000+ records, plus the trilingual interactive atlas at geoalgeria.com. Wilayas, communes, health, schools, universities, transport, flights, telecom, post and banks. JSON, CSV, GeoJSON, SQL, TypeScript.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

59 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,231 Commits

Folders and files

Repository files navigation

English | Français | العربية

GeoAlgeria

by
Yasser's studio

The open dataset for Algeria, install it, don't scrape it.

CI npm npm downloads jsDelivr hits GitHub stars Code: MIT

GeoAlgeria is a solo-built, open project with one goal: to become the first and most comprehensive portal for all of Algeria's data. Verifiable, current, and free to use. It comes in two parts: an interactive atlas you explore in the browser, and the datasets behind it, published as npm packages you install instead of scrape.

The atlas

The GeoAlgeria atlas at geoalgeria.com

geoalgeria.com puts 28+ datasets and 80,000+ records on one interactive map, redrawn for the 69 wilayas.

  • Cross-sector atlas: every sector on a single map, from post offices to mosques to hospitals, with a per-wilaya density view.
  • Live wildfire map: NASA FIRMS satellite hotspots alongside official Civil Protection bulletins, updated through the fire season (launched 23 July 2026).
  • Flight routes globe: every nonstop Air Algérie route on a globe, marked verified, listed, or announced.
  • 3,951 per-wilaya pages: one page for every wilaya and sector, built to be searchable.
  • Layer stacking: switch sectors on and off and read them together on the same map.
  • Command-K search: jump to any wilaya or commune straight from the keyboard.
  • Arabic, French, and English: the entire interface, fully right-to-left in Arabic.
  • Provenance on every record: each point shows where it came from and when it last changed. See the sources and changelog.

The flight routes globe on a phone The pharmacy map on a phone The Casbah commune page in Arabic on a phone

The data

Most Algeria datasets online still list 48 wilayas. Algeria has had 69 since April 2026. GeoAlgeria is kept current, with real Algérie Poste postal codes, geographic coordinates, bilingual names, and post offices & ATMs, shipped as JSON, CSV, GeoJSON, SQL, and TypeScript. One npm install, MIT code with per-package data terms, and CI-validated on every commit.

npm install geoalgeria
const dz = require("geoalgeria");
// or, in an ESM app or with a bundler: import dz from "geoalgeria";

dz.wilayas;                       // all 69 wilayas
dz.getCommunesByWilaya(16);       // 57 communes in Algiers
dz.findByPostalCode("16000");     // → commune, daira, wilaya
dz.getPostOfficesByCommune(1731); // real Algérie Poste offices

A bundler (Next.js, Vite, webpack) includes all eleven JSON files, the post office and ATM mirrors among them. If you need one part only, import its file on its own: import communes from "geoalgeria/data/ecommerce/communes.json" in a bundler, or with with { type: "json" } in plain Node. In TypeScript the default import needs esModuleInterop; import dz = require("geoalgeria") does not.

Search, wilaya lineage and dairas

// Search: Wilayas, then Dairas, then Communes, in French or Arabic (Node 20.19+ or a bundler)
dz.search("ورقلة");
// [{ type: "wilaya", code: 30, name_fr: "Ouargla", name_ar: "ورقلة", wilaya_code: 30, match: "exact" },
//  { type: "daira", code: 335, ... }, { type: "commune", code: 3001, ... }]
dz.search("bejaia", { types: ["commune"], limit: 5 });
// [{ type: "commune", code: 601, name_fr: "Bejaia", name_ar: "بجاية", wilaya_code: 6, match: "exact" }]

// Wilaya lineage: the wilaya each commune was in on the 58- and 48-wilaya maps
const touggourt = dz.communes.find((c) => c.code_commune === 5501);
touggourt.wilaya_code;     // 55
touggourt.wilaya_code_58;  // 55
touggourt.wilaya_code_48;  // 30, Ouargla before 2019
dz.wilayaLineage.wilayas;  // each wilaya's two old codes, with the article of law behind them
dz.burnedArea.wilayas;     // hectares burned per wilaya and month since 2001

// Dairas: Arabic name, how far the commune list is checked, and the communes in it
const daira = dz.dairas.find((d) => d.id === 515);
daira.name_ar;         // "تقرت"
daira.audit.status;    // "decree_table", "agrees_1991", or null when not graded yet
daira.audit.citation;  // decree 21-198 of 2021: article, page and the Journal officiel PDF
daira.communes;        // [5501, 5503, 5504, 5505]: Touggourt, Nezla, Tebesbest, Zaouia El Abidia
daira.seat_commune_code; // 5501, the commune Touggourt
daira.kind;            // "daira" ("circonscription" in Algiers)

Accents, case and hamza forms never stop a match. Each result's match is exact, prefix (the start of a name) or loose (ى read as ي, ة as ه), and a former name finds the record too, with matched: "former". Daira lists come from the decrees in the Journal officiel (ADR 0006).

Python has the same wilayas, dairas and communes, with no dependencies:

pip install geoalgeria
import geoalgeria

geoalgeria.search("ورقلة")[0]["name_fr"]   # 'Ouargla', harakat optional
geoalgeria.communes(16)                   # communes of Algiers
geoalgeria.commune(101)["postal_code"]    # '01000'

What's inside

Count
Wilayas 69 provinces (2019 + 2026 reforms), each with its capital commune (chef-lieu)
Dairas 551 each with its Arabic name, member communes and seat commune; the 13 of Algiers are circonscriptions administratives
Communes 1,541 bilingual FR/AR, postal codes, coordinates, OpenStreetMap + Wikidata links
Commune outlines 1,541 one polygon per commune, also cut into one file per wilaya (OpenStreetMap, ODbL)
Post offices 3,907 real Algérie Poste codes, coordinates
ATMs 2,023 Algérie Poste GAB network
Employment agencies 331 ANEM: 58 AWEM + 273 ALEM. @geoalgeria/emploi
Mobilis network 12,344 164 agencies + 12,180 points of sale. @geoalgeria/mobilis
5G coverage 4,093 Djezzy + Mobilis + Ooredoo 5G sites. @geoalgeria/telecom
Civil airports 36 ANAC + OurAirports: names, ICAO + IATA codes, contacts, coordinates. @geoalgeria/aviation
Nonstop routes 179 Air Algérie's international network as directional legs, each with an operator, an evidence tier and a citation list. @geoalgeria/aviation
Banks & branches 1,704 all 21 licensed banks + 8 institutions; branches with RIB/SWIFT codes, ownership, coordinates. @geoalgeria/banques
Delivery carriers 650 18-carrier registry + 650 geocoded stop-desks across 64 wilayas (Yalidine, Guepex, Anderson, Noest, Maystro, ZR Express, Swift Express, HHD Express). @geoalgeria/livraison
Youth establishments 2,334 maisons de jeunes, complexes sportifs de proximité, salles polyvalentes, auberges, cultural & science centers & more across 69 wilayas (Ministry of Youth and Sports). @geoalgeria/jeunesse
Sports facilities 5,234 stadiums, pools, proximity fields, athletics tracks, courts & more (28 types) across 69 wilayas (Ministry of Youth and Sports). @geoalgeria/sports
Higher education 171 universities, grandes écoles, ENS, centres + 19 private & 34 other-ministry institutions across 51 wilayas, with official websites (MESRS). @geoalgeria/enseignement-superieur
Tourism 4,321 1,587 hotels, 1,245 attractions, 1,180 historic sites, 282 thermal springs (ASAL), 27 national parks. @geoalgeria/tourisme
Vocational training 1,963 857 CFPA + 182 INSFP + 754 private accredited + 58 DFEPs + more across all 69 current wilayas (MFEP / takwin.dz). @geoalgeria/formation-professionnelle
Mosques 20,759 Wikidata + OpenStreetMap composite, Arabic & French names, denomination, all 69 wilayas. @geoalgeria/mosquees
Djezzy boutiques 128 geocoded retail stores with category, hours & commune/wilaya linkage (djezzy.dz). @geoalgeria/djezzy
Health establishments 657 EPH · EPSP · EHS · CHU from the Ministry of Health, bilingual, 587 geocoded via OSM + Wikidata, plus 2 site records for the other premises of CHU Béjaïa. @geoalgeria/sante
Clinics & care facilities 1,914 Polycliniques, salles de soins, centres de santé, maternités & private clinics from OpenStreetMap, classified by type, bilingual, 66 wilayas. The community tier beside the sante registry, never summed with it. @geoalgeria/cliniques
Civil protection units 880 DGPC fire & rescue units nationwide, Arabic-named, address/phone/fax, status tier, all geocoded, official-primary (dgpc.dz), post-2026-reform wilaya linkage. @geoalgeria/protection-civile
Cultural places 1,083 Protected sites, museums, theatres, libraries + cultural establishments from the Ministry of Culture, bilingual, all geocoded, 66 wilayas. @geoalgeria/culture
Agriculture institutions 196 Services directorates (DSA), forest conservations, research/training institutes, chambers of agriculture, public offices & groups from the Ministry of Agriculture, bilingual, geocoded, 58 wilayas. @geoalgeria/agriculture
Schools 11,849 Primaires, CEM, lycées & préscolaires classified by cycle from OpenStreetMap, bilingual, all 69 wilayas. @geoalgeria/ecoles
Intercity bus stations 74 SOGRAL gares routières across 52 wilayas, names, addresses, surface areas, coordinates. @geoalgeria/gares-routieres
Rail & urban transit 691 train, tram, metro, aerial-tramway & gondola nodes (SNTF / SETRAM / SEMA), Wikidata + OSM composite, bilingual, 50 wilayas. @geoalgeria/ferroviaire
Urban/suburban bus Lines 184 16 Operators, 76 shapes, 128 Directions, 1,599 Stations. @geoalgeria/buses
Pharmacies 3,811 officines geocoded from OpenStreetMap, bilingual where named, wilaya/commune-linked. @geoalgeria/pharmacies
Pharma manufacturers 171 approved medicine & medical-device makers from the Ministry of Pharmaceutical Industry register, geocoded. @geoalgeria/industrie-pharmaceutique
Ooredoo stores 572 Espaces Ooredoo, City Shops & Espaces Services with real coordinates, wilaya/commune-linked (ooredoo.dz). @geoalgeria/ooredoo

Formats: JSON · CSV · GeoJSON · SQL · TypeScript. The npm package ships every format (JSON, CSV, GeoJSON, SQL), and each GitHub Release carries them too.

Current to Law n° 26-06 (new territorial organization), Journal Officiel n° 25 of 5 April 2026, plus the 2019 reform (Law 19-12).

Why GeoAlgeria?

geoalgeria leblad algeria-cities
All 69 wilayas (2026 reform) ✅ ❌ (58) ✅
Dairas as first-class entities ✅ ❌ ❌
Real Algérie Poste postal codes ✅ ~ ❌
Coordinates per commune ✅ ❌ ✅
Post offices & ATMs ✅ ❌ ❌
E-commerce ready ✅ ❌ ❌
npm + TypeScript types ✅ ✅ ❌
GeoJSON / SQL exports ✅ ❌ ✅
CI-validated on every commit ✅ ❌ ❌
Last updated 2026 2021 2023

See the full comparison →

Who it's for

  • E-commerce / COD: wilaya → daira → commune address cascades, postal-code validation, and shipping-zone config that matches what carriers actually use.
  • Maps & GIS: drop-in GeoJSON with a point and an outline for each of the 1,541 communes, modeled correctly through both reforms.
  • Research, open data & civic projects: clean, structured, sourced, and versioned reference data instead of PDFs.
  • Any project using Algerian data: one install, types included.

Packages

Package npm What
packages/dataset geoalgeria Wilayas, dairas, communes + structured postal data
packages/poste @geoalgeria/poste Standalone post offices & ATMs from Algérie Poste
packages/emploi @geoalgeria/emploi Standalone employment agencies (AWEM + ALEM) from ANEM
packages/mobilis @geoalgeria/mobilis Standalone Mobilis agencies & approved points of sale
packages/telecom @geoalgeria/telecom Cross-operator 5G coverage (Djezzy + Mobilis + Ooredoo)
packages/aviation @geoalgeria/aviation Civil airports from ANAC + OurAirports, names, ICAO + IATA codes, coordinates, plus the nonstop international route network
packages/banques @geoalgeria/banques All 21 licensed banks + financial institutions & 1,704 branches (RIB, SWIFT, ownership, coordinates)
packages/livraison @geoalgeria/livraison Delivery carrier registry + 650 geocoded stop-desks & per-carrier coverage (Yalidine, Guepex, Anderson, Noest, Maystro, ZR Express, Swift Express, HHD Express)
packages/jeunesse @geoalgeria/jeunesse Youth establishments from the Ministry of Youth and Sports (2,334 across 69 wilayas)
packages/sports @geoalgeria/sports Sports facilities from the Ministry of Youth and Sports, 5,234 across 69 wilayas, 28 types, with capacity, PMR access & coordinates
packages/enseignement-superieur @geoalgeria/enseignement-superieur Higher-education network from MESRS, universities, grandes écoles, ENS, centres + private & other-ministry institutions (171), with official websites & coordinates
packages/tourisme @geoalgeria/tourisme Tourism infrastructure, 4,321 geocoded hotels, attractions, historic sites, thermal springs & parks from ASAL, OSM & Wikidata
packages/formation-professionnelle @geoalgeria/formation-professionnelle Vocational training, 1,963 CFPA, INSFP, IFEP, IEP, DFEPs & private centers from MFEP (takwin.dz), with capacity, boarding & coordinates
packages/djezzy @geoalgeria/djezzy Djezzy boutiques, 128 geocoded retail stores from djezzy.dz, with category, hours & commune/wilaya linkage
packages/mosquees @geoalgeria/mosquees Mosques of Algeria, 20,759 geocoded, a Wikidata + OpenStreetMap composite with Arabic & French names, denomination & commune/wilaya linkage
packages/sante @geoalgeria/sante Public health establishments, 657 from the Ministry of Health (EPH, EPSP, EHS, CHU), bilingual, geocoded via OSM + Wikidata with commune/wilaya linkage
packages/cliniques @geoalgeria/cliniques Clinics & proximity-care facilities, 1,914 geocoded from OpenStreetMap across 66 wilayas, classified by type (polyclinique/salle de soins/centre de santé/maternité/clinique), bilingual, with sector, speciality, phone & hours where tagged; the OSM community tier of the health sector, and every OSM element sante references is excluded from it
packages/culture @geoalgeria/culture Cultural atlas, 1,083 places from the Ministry of Culture (protected sites, museums, theatres, libraries, cultural establishments), bilingual, fully geocoded with commune/wilaya linkage
packages/agriculture @geoalgeria/agriculture Agriculture-sector institutions, 196 from the Ministry of Agriculture across 7 networks (DSA, forest conservations, research/training institutes, chambers of agriculture, public offices & groups), bilingual, geocoded with commune/wilaya linkage
packages/ecoles @geoalgeria/ecoles Schools, 11,849 schools & kindergartens from OpenStreetMap, classified by cycle (primaire/moyen/secondaire/préscolaire), bilingual, all 69 wilayas, with commune/wilaya linkage
packages/gares-routieres @geoalgeria/gares-routieres Intercity bus stations, 74 SOGRAL gares routières across 52 wilayas, geocoded with surfaces & commune/wilaya linkage
packages/ferroviaire @geoalgeria/ferroviaire Rail & urban transit, 691 train/tram/metro/aerial/gondola nodes (SNTF/SETRAM/SEMA), Wikidata + OSM composite, bilingual FR/AR
packages/buses @geoalgeria/buses 184 reviewed urban/suburban Lines, 76 shapes and 1,599 Stations across 16 Operators
packages/industrie-pharmaceutique @geoalgeria/industrie-pharmaceutique Pharmaceutical manufacturers, 171 approved medicine (PP) & medical-device (DM) makers from the Ministry of Pharmaceutical Industry register, bilingual, geocoded to commune/wilaya centroid
packages/pharmacies @geoalgeria/pharmacies Pharmacies (officines), 3,811 geocoded across 67 wilayas from OpenStreetMap, bilingual where named, with phone/hours/dispensing where tagged & commune/wilaya linkage
packages/protection-civile @geoalgeria/protection-civile Civil protection (fire & rescue) units, 880 DGPC units nationwide, Arabic-named, with address/phone/fax & a status tier, all geocoded, official-primary (dgpc.dz); wilaya re-derived against the 69 post-2026-reform boundaries
packages/ooredoo @geoalgeria/ooredoo Ooredoo stores, 572 EO / City Shop / Espace Services with real coordinates & commune/wilaya linkage (ooredoo.dz); completes the telecom retail trio
packages/transport @geoalgeria/transport Umbrella, installs aviation + ferroviaire + gares-routieres + buses in one step
packages/pharma @geoalgeria/pharma Umbrella, installs industrie-pharmaceutique + pharmacies in one step
packages/normalize @geoalgeria/normalize Search keys for Algerian place names, the Conservative key, the Loose key, the tokenizer and their Golden corpus; code only, zero dependencies, so every index folds a name the same way

Browse all packages → · API docs & field reference →

Data contract

Since v2.0.0, every sector package shares one canonical record contract, defined by the internal @geoalgeria/schema package, a dev dependency used by each generator, never published to npm.

Every record follows the same shape:

  • wilaya_code is a zero-padded string ("16"); commune linkage is commune_code + commune; coordinates are lat / lng (both numbers, or both null).
  • External ids live under refs (osm, wikidata, …).
  • geo_precision is strictly exact | approximate | null, null exactly when there is no coordinate, with the geocoding method in geo_method.

Machine-readable artifacts ride alongside: a root index.json catalog, a schema.org/Dataset descriptor (dataset-metadata.json) in each data-bearing package (the code-only @geoalgeria/normalize carries no dataset descriptor), and the 69 wilaya boundary polygons in the core package at data/geojson/wilaya-boundaries.geojson (display-grade), plus the same 69 wilayas dissolved from the communes at wilaya-boundaries-detailed.geojson and the 1,541 commune outlines at data/geojson/commune-boundaries.geojson, with one file per wilaya in commune-boundaries/<wilaya_code>.geojson (OpenStreetMap, ODbL).

Human-reviewed corrections use the same contract across packages. A package can add quality/overrides/<package>.json; the canonical writer checks the expected old values, requires public evidence for changes or exclusions, applies the decision, and then runs the ordinary schema gate. See quality/overrides/README.md. Health data is the first pilot.

A published id is a join key, so it is never reused. A record that leaves a package leaves its id in that package's data/retired-ids.json, reserved for good, and where two records are merged into one the ledger's migrations map also says where the absorbed id's data went: merged_into names the record that carries it now, with a note and, where the upstream has them, the source ids the pair stood for. A consumer holding an old id can follow it instead of only finding it gone.

One package predates the contract, the core geoalgeria dataset (administrative divisions, not GeoRecords; marked schema_version: null in the catalog).

Migrating a package? See packages/schema/MIGRATING.md.

Use without npm

<!-- via jsDelivr CDN, no install -->
<script>
  fetch("https://cdn.jsdelivr.net/npm/geoalgeria/data/ecommerce/communes.json")
    .then((r) => r.json())
    .then((communes) => { /* build your dropdown */ });
</script>

Prefer files? Grab CSV / GeoJSON / SQL from the zipped bundle on any GitHub Release, or browse packages/dataset/data/.

Where this is going

GeoAlgeria isn't a one-off dump. The goal is to be the open reference source, continuously updated, for Algeria's data, kept current through every administrative reform, and expanding to more kinds of Algeria data as sources become available. Administrative divisions and postal/banking are the start, not the end.

Watch or ⭐ the repo to follow along, and open a discussion to request a dataset.

Contributing

Corrections and additions are welcome, see CONTRIBUTING.md and our Code of Conduct. What is planned and what is still open is in ROADMAP.md. Good first issues usually just need a source link or a missing commune coordinate. Found wrong data? Open an issue.

Versioning & releases

Semantic versioning per package, automated with Changesets. See RELEASING.md and each package's CHANGELOG.md.

Sponsor

GeoAlgeria is free. The code is MIT and each package states its own data terms. If it saves you time, sponsor its maintenance, it funds keeping the data current and expanding the coverage.

Licence & disclaimer

Code: MIT. Data: compiled from public official sources (the Journal Officiel, Algérie Poste, ANEM, ANAC, each operator's/institution's public site) and redistributed for reference.

Each package manifest declares its exact terms (an SPDX expression, or SEE LICENSE IN LICENSE) and its own LICENSE file carries the data terms in full.

GeoAlgeria is an independent project, not affiliated with or endorsed by any government body, regulator, operator, or institution it references; their names and marks belong to their respective owners. The data is provided "as is", without warranty, verify against the official source before relying on it, especially for financial, payment, KYC, or compliance use. Full terms: DISCLAIMER.


If GeoAlgeria saved you from copy-pasting wilayas out of a PDF, give it a ⭐: it helps the next Algerian developer find clean data.

Yasser's studio

Made by Yasser's studio · geoalgeria.com · LinkedIn · X · support@yasser.studio

GeoAlgeria is free, and it stays free. The same studio also makes maps, websites, mobile apps and open data for clients.

About

Open geographic data for Algeria: 30 npm packages, 83,000+ records, plus the trilingual interactive atlas at geoalgeria.com. Wilayas, communes, health, schools, universities, transport, flights, telecom, post and banks. JSON, CSV, GeoJSON, SQL, TypeScript.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

59 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages