Algeria's Rail & Urban Transit
@geoalgeria/ferroviaire
692 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.
Source: Wikidata (CC0) + OpenStreetMap (ODbL) — operators SNTF, SETRAM, SEMA
Install
npm install @geoalgeria/ferroviaireQuick example
import ferroviaire from "@geoalgeria/ferroviaire";
const all = ferroviaire.stations(); // 692 nodes
const trams = ferroviaire.stationsByType("tram"); // 190 tram stops
const alger = ferroviaire.stationsByWilaya(16); // rail + metro + tram in AlgiersAPI reference
| Name | Signature | Description |
|---|---|---|
stations | stations(): Station[] | All 692 transit nodes. |
stationById | stationById(id): Station | null | One node by id. |
stationsByType | stationsByType(type): Station[] | Nodes of a type ("rail" | "tram" | "metro" | "aerial_tram" | "gondola"). |
stationsByWilaya | stationsByWilaya(code): Station[] | Nodes in a wilaya (numeric or zero-padded code). |
metadata | metadata(): Metadata | Package metadata (counts by type/source/operator, licences). |
Record shape
| Field | Type | Nullable | Description |
|---|---|---|---|
id | string | — | Stable id, `{wilaya}-{seq}` (e.g. "16-021"). |
name | string | yes | Best available name (FR preferred). |
name_fr | string | yes | French / Latin-script name. |
name_ar | string | yes | Arabic name. |
type | "rail" | "tram" | "metro" | "aerial_tram" | "gondola" | — | Transit node kind. |
line | string | yes | Line membership where known. |
operator | string | yes | SNTF (rail) / SETRAM (tram) / SEMA (metro). |
network | string | yes | Tram city network / “Métro d'Alger”. |
wilaya_code | string | — | Zero-padded ("01".."69"). |
commune | string | yes | Commune (nearest-centroid join). |
commune_code | number | yes | geoalgeria commune code. |
lat | number | — | Latitude (WGS84). |
lng | number | — | Longitude (WGS84). |
geo_precision | "exact" | — | Coordinates are exact points. |
source | "wikidata" | "wikidata+osm" | "osm" | — | Provenance (OSM matched within ~150 m). |
wikidata | string | yes | Wikidata QID. |
osm_id | string | yes | OSM element id. |
Formats
The npm package ships JSON. Other formats are available in each GitHub Release.
Related packages
@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/busesUrban 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.
@geoalgeria/aviation33 civil airports with official names, ICAO codes, addresses, phone numbers, websites, and geographic coordinates.