@worldwideview/wwv-plugin-railway-stations
v1.0.0
Published
WorldWideView plugin — Railway station locations worldwide
Maintainers
Readme
@worldwideview/wwv-plugin-railway-stations
WorldWideView plugin — Railway station locations worldwide.
Usage
This package is part of the WorldWideView plugin ecosystem. It provides the following capabilities:
- ID:
railway-stations - Category: Infrastructure
- Format: static
Data Sources
Feature coordinates and metadata come from OpenStreetMap via the Overpass API (query: node["railway"="station"], only nodes with a name tag), made available under the ODbL license.
Each feature is a Point with the following properties when present on the source node:
name(required)station_code— station code, if taggedpublic_transport—station/stop_position/etc., if taggedoperator— station operator, if taggedrailway— tag value (usuallystation)
Installation
Typically installed via the WorldWideView Marketplace or discovered automatically. If installing manually in a Next.js setup:
npm install @worldwideview/wwv-plugin-railway-stationsArchitecture
This plugin adheres to the WorldWideView standard plugin structure. As a static plugin, it connects to the core Event Bus and renders map capabilities. The GeoJSON FeatureCollection is baked into data/data.json and raw-imported at runtime by an AutoStaticPlugin class (same pattern as wwv-plugin-lighthouses).
Data Integrity
Run the fail-closed validator to check the data file:
node scripts/verify-data.mjsExits 0 on pass, 1 on any anomaly (FeatureCollection shape, Point geometries, coordinate ranges, required properties, duplicate ids).
Built for WorldWideView.
