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 | no | 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. |
wilaya_code | string | no | Zero-padded ("01".."69"). |
commune_code | string | yes | geoalgeria commune code. |
commune | string | yes | Commune (nearest-centroid join). |
lat | number | no | Latitude (WGS84). |
lng | number | no | Longitude (WGS84). |
geo_precision | "exact" | "approximate" | no | How precisely the point is placed. |
geo_method | GeoMethod | no | How the coordinates were derived. |
source | StationSource | no | Provenance (OSM matched within ~150 m). |
refs | Refs | no | External identifiers (Wikidata / OSM). |
type | StationType | no | Transit node kind. |
line | string | yes | Line membership where known. |
operator | Operator | yes | SNTF (rail) / SETRAM (tram) / SEMA (metro). |
network | Network | yes | Tram city network / “Métro d'Alger”. |
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 52 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/aviation36 civil airports with official names, ICAO and IATA codes, addresses, phone numbers, websites, and geographic coordinates.