Use stations2geojson.pl to create a GeoJSON edition of the European train station database.
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
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.