[SOLVED] Build map of overnight trains in Europe?


Eurail offers the following (up-to-date?) list of overnight train lines in Europe:


Provided someone entered the relevant infos in OSM, what would be the right way to query OSM through OverpassTurbo to build a map?

Thank you.

Found this:

I think the biggest hurdle at the moment is proper (documentation of) tagging of the routes. I’m finding some routes in France tagged with by_night=only and sleeping=yes. The latter is not necessary per se to be a night train, I know there are some trains in Germany that do run at night but are not sleeper trains. It depends on your requirements.

https://wiki.openstreetmap.org/wiki/Tag:route%3Dtrain needs to be extended to document more of the tags that are already used. An effective overpass query can only exist when the relations can be found via their tagging.

I’m not very experienced with overpass, but when the tagging is correct, I think the query to get the proper lines is not so difficult.


I tried subscribing to the OpenRailwayMap mailing list a couple of days ago and am still waiting to have my email approved by the moderator.

Is there a document somewhere that shows the proper way to add a train route using eg. JOSM ?

In addition, I couldn’t find the relation for the EU, let alone the European continent.

Edit: The following query returns about 10MB of data, hence the 60s timeout


//EU? Europe?
//Metropolitan France 1403916
rel(1403916);map_to_area -> .searchArea;


// print results
out body;
out skel qt;

Talking about a railway map … Belgian NMBS launched ‘fresh new’ since today a NMBS Train Map :wink:

Good to know

"With Train Map, the position of the trains on the Belgian railway network can now be tracked live. The aim is to inform passengers better, says the NMBS that launched the application today. "


The map you link to is a mix of OpenStreetMap data and data of the NMBS (the actual position of the trains).

Do you know there is a mailing list dedicated to public transport mapping in OSM ? https://lists.openstreetmap.org/listinfo/talk-transit

Thanks. The OpenRailwayMap seemed more appropriate but since I still can’t subscribe to it, I’ll check out that other ML.