Algeria's Urban Bus Networks
@geoalgeria/buses
Urban bus lines across Algeria — a multi-operator dataset starting with 50 ETUSA (Algiers) lines: termini, stop counts, and the communes and transit stations each line serves. Line-level attributes (v1); per-stop geometry to follow.
Source: ETUSA (Établissement de transport urbain et suburbain d'Alger) — via fr.wikipedia (CC BY-SA)
Install
npm install @geoalgeria/busesQuick example
import buses from "@geoalgeria/buses";
const all = buses.lines(); // 50 lines
const etusa = buses.linesByOperator("ETUSA"); // 50
const l1 = buses.lineById("etusa-1"); // El Harrach ↔ Place Aïssat IdirAPI reference
| Name | Signature | Description |
|---|---|---|
lines | lines(): BusLine[] | All bus lines (v1: 50 ETUSA/Alger). |
lineById | lineById(id): BusLine | null | One line by id (e.g. "etusa-1"). |
linesByOperator | linesByOperator(operator): BusLine[] | Lines for an operator (case-insensitive). |
operators | operators(): string[] | Distinct operators present. |
metadata | metadata(): Metadata | Package metadata (counts, coverage note, licence). |
Record shape
| Field | Type | Nullable | Description |
|---|---|---|---|
id | string | — | Stable id, `{operator}-{line}` (e.g. "etusa-1"). |
operator | string | — | Operating company (e.g. "ETUSA"). |
network | string | — | Network / city (e.g. "Alger"). |
line | string | — | Line number/label. |
terminus1 | string | yes | First terminus. |
terminus2 | string | yes | Second terminus. |
stops | number | yes | Number of stops where published. |
communes_served | string[] | — | Communes along the line. |
stations_served | string[] | — | Metro/tram/gare stations served en route. |
wilaya_code | string | — | Zero-padded ("16" for Alger). |
Formats
The npm package ships JSON. Other formats are available in each GitHub Release.
Related packages
@geoalgeria/ferroviaire692 rail and urban-transit nodes across 50 wilayas — 427 rail, 190 tram, 41 metro, 24 aerial-tramway and 10 gondola — bilingual FR/AR, with operator (SNTF/SETRAM/SEMA), line membership and wilaya/commune linkage. A Wikidata (CC0) + OpenStreetMap (ODbL) composite.
@geoalgeria/gares-routieres74 intercity bus stations (gares routières) across 51 wilayas — official names, addresses, coordinates (74/74 geocoded), surface areas and wilaya/commune linkage, from SOGRAL, the state operator of Algeria's coach stations.
@geoalgeria/transportUmbrella package — install once to get every GeoAlgeria transport dataset, re-exported namespaced: civil airports, rail & urban transit, intercity bus stations and urban bus networks.