Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Latest commit

 

History

History
17 lines (9 loc) · 798 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 798 Bytes

stations-geojson

Use stations2geojson.pl to create a GeoJSON edition of the European train station database.

Using the Script

Download the latest stations database from CapitaineTrain/stations:

curl https://raw.githubusercontent.com/capitainetrain/stations/master/stations.csv > stations.csv

Pipe the stations.csv file into the script and pipe out the resulting GeoJSON to a new file:

stations2geojson.pl < stations.csv > stations.geojson

Sample Conversion

The stations.geojson is a sample file created with stations.csv. While correct at the time of uploading, please create your own edition with the latest database.