npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@geoalgeria/gares-routieres

v2.0.0

Published

Algeria's intercity bus stations (gares routières) — 74 SOGRAL terminals across 51 wilayas with official names, addresses, coordinates, surface areas, and wilaya/commune linkage. Sourced from SOGRAL (live.sogral.com). JSON, CSV, GeoJSON, TypeScript.

Readme

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

@geoalgeria/gares-routieres

Every intercity bus station in Algeria — as data you can install.

npm npm downloads License: MIT

74 intercity bus stations (gares routières) across Algeria — with official names, postal addresses, GPS coordinates, surface areas, and wilaya/commune linkage. Sourced from SOGRAL (the state operator of Algeria's coach stations), shipped as JSON, CSV, and GeoJSON. Part of GeoAlgeria.

Also known as: the SOGRAL network. SOGRAL is the source; the package is domain-named (gares-routieres) and discoverable via the sogral keyword.

npm install @geoalgeria/gares-routieres
import gares from "@geoalgeria/gares-routieres";

const all = gares.stations();                 // 74
const alger = gares.stationById("16-01");      // Alger — Grands Invalides
const inSetif = gares.stationsByWilaya(19);    // stations in wilaya 19

// Every station has lat/lng — distance-sort, map, or nearest-station in a few lines.

What you can build

  • Nearest-station lookups — coordinates on every record, ready for distance sorting.
  • Travel & logistics — match a wilaya or a point to its serving coach station.
  • Maps — drop-in GeoJSON point layer for the national gare-routière network.
  • Capacity views — total/built surface areas per station.

What's inside

| Dataset | Count | Notes | | --- | --- | --- | | Intercity bus stations | 74 | official name, address, coordinates, surface areas |

Spanning 51 wilayas, every station geocoded. wilaya_code is linked against the geoalgeria 69-wilaya model.

Formats

The npm package ships the JSON (importable directly):

import stations from "@geoalgeria/gares-routieres/data/stations.json" with { type: "json" };
// or via CDN, no install:
// https://cdn.jsdelivr.net/npm/@geoalgeria/gares-routieres/data/stations.json

The loaders and record shapes are fully typed:

import gares, { type Station } from "@geoalgeria/gares-routieres";
const stations: Station[] = gares.stations();

CSV and GeoJSON are in the repo under data/ and bundled in every GitHub Release:

data/
  stations.json            # 74 stations (array)
  metadata.json            # sources, counts, license, updated
  csv/stations.csv
  geojson/stations.geojson # Point features (all 74 are geocoded)

Record shape

{
  "id": "16-01",
  "name": "ALGER",
  "wilaya_code": "16",
  "commune_code": "1631",
  "commune": "El Magharia",
  "lat": 36.7425,
  "lng": 3.108,
  "geo_precision": "exact",
  "geo_method": "exact",
  "source": "sogral",
  "refs": {
    "sogral": "213-000016000"
  },
  "official_name": "La gare routière des Grands Invalides de la guerre de libération nationale",
  "address": "Avenue de L’ALN B.P n°412 – 16040 – Hussein Dey (Alger)",
  "surface_total_m2": 13000,
  "surface_built_m2": 8000
}

id is an opaque string, {wilaya_code}-{seq}-shaped but unique within stations.json — don't parse it. wilaya_code/commune come from a nearest-centroid join against geoalgeria (which also reconciles SOGRAL's legacy 48-wilaya codes). 71 of 74 stations are geo_precision: "exact"; 3 are "approximate" (Guelma, Illizi, Aïn Oussara). The SOGRAL location code lives under refs.sogral.

Need the administrative divisions too?

For wilayas, dairas, and communes to join against, use the main geoalgeria package — it ships the full 69-wilaya division dataset that wilaya_code here links to.

Source

Data comes from SOGRAL — EPE SOGRAL Spa (Société de Gestion des Gares Routières d'Algérie), via its live departures registry (https://live.sogral.com). Run npm run fetch to regenerate every output. wilaya_code/commune are resolved by nearest commune centroid from the geoalgeria dataset.

License & attribution

Code is MIT. The underlying data is © SOGRAL, redistributed for reference and to power GeoAlgeria. Verify against SOGRAL for authoritative, real-time information.

Browse all packages →


Made by Yasser's Studio · LinkedIn · X · [email protected]