Get GeoJSON train itineraries between stations, based on signal.eu.org web service (based on osrm engine). You can import this GeoJSON in https://kepler.gl/demo for example to vizualise it.
- https://trainmap.ntag.fr
GET https://trainmap.ntag.fr/api/route?dep=4916&arr=8267
// Trainline stations IDsGET https://trainmap.ntag.fr/api/route?dep=48,2&arr=52,13
// lat,lng coordinatesGET https://trainmap.ntag.fr/api/route?dep=4916&arr=8267&simplify=1
// Use?simplify=1
to get a simplified Polygon
npm install
cd front/
npm install
node .
# Then in another shell
cd front/
npm start
- Open http://localhost:3000 for the web interface
GET http://localhost:5001/api/route?dep=4916&arr=8267
GET http://localhost:5001/api/route?dep=2,48&arr=13,52
Routing from https://signal.eu.org/osm/ ๐. Stations file by Trainline: https://github.com/trainline-eu/stations.