This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] Overpass query to retrieve train line with station names?

-1

I'm no OSM/Overpass expert, and need to draw a map on Umap by retrieving train lines from OSM, along with the names of the stations.

I googled for this, searched the archives, but still can't figure out how to build the right query in OverpassTurbo.

How should I edit the following query to include station names?

[out:json][timeout:25];
(
  relation["network"="SomeTrainNetwork"]["ref"="TrainLineReference"]({{bbox}});
);

out body;
>;
out skel qt;

Thank you.

asked 17 Mar '16, 12:48

Shohreh's gravatar image

Shohreh
85131318
accept rate: 0%

closed 17 Mar '16, 22:29

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

2

Crossposting from http://forum.openstreetmap.org/viewtopic.php?id=54031

Be aware that crossposting is lowering the chance of getting good answers!

What did you try from that forum answer????

(17 Mar '16, 16:32) stephan75

Not much, because it makes no sense to a newbie like me. Which is why I asked here too. What's wrong with that?

(17 Mar '16, 21:17) Shohreh

meta @Shohreh: crossposting wastes resources (the people who are spending their time to help) because of dulicate work and scatters the collected information/answers across several places (relevant for others in the future with the same question). Please do not do it (unless for very special reason with clear links between each post).

(17 Mar '16, 22:24) aseerel4c26 ♦

The question has been closed for the following reason “Duplicate Question. Please stay at the original location and continue there.” by aseerel4c26 17 Mar ‘16, 22:29

Source code available on GitHub .