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.

692 stations & stopsView on mapnpm

Source: Wikidata (CC0) + OpenStreetMap (ODbL): operators SNTF, SETRAM, SEMA

Install

npm install @geoalgeria/ferroviaire

Quick 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 Algiers

API reference

NameSignatureDescription
stationsstations(): Station[]All 692 transit nodes.
stationByIdstationById(id): Station | nullOne node by id.
stationsByTypestationsByType(type): Station[]Nodes of a type ("rail" | "tram" | "metro" | "aerial_tram" | "gondola").
stationsByWilayastationsByWilaya(code): Station[]Nodes in a wilaya (numeric or zero-padded code).
metadatametadata(): MetadataPackage metadata (counts by type/source/operator, licences).

Record shape

FieldTypeNullableDescription
idstringnoStable id, `{wilaya}-{seq}` (e.g. "16-021").
namestringyesBest available name (FR preferred).
name_frstringyesFrench / Latin-script name.
name_arstringyesArabic name.
wilaya_codestringnoZero-padded ("01".."69").
commune_codestringyesgeoalgeria commune code.
communestringyesCommune (nearest-centroid join).
latnumbernoLatitude (WGS84).
lngnumbernoLongitude (WGS84).
geo_precision"exact" | "approximate"noHow precisely the point is placed.
geo_methodGeoMethodnoHow the coordinates were derived.
sourceStationSourcenoProvenance (OSM matched within ~150 m).
refsRefsnoExternal identifiers (Wikidata / OSM).
typeStationTypenoTransit node kind.
linestringyesLine membership where known.
operatorOperatoryesSNTF (rail) / SETRAM (tram) / SEMA (metro).
networkNetworkyesTram city network / “Métro d'Alger”.

Formats

JSONCSVGEOJSONTS

The npm package ships JSON. Other formats are available in each GitHub Release.

Related packages