I understand from the wiki article of Paris Metro, that there are 16 lines and 302 stations. Could you help me run an overpass query that can give me the data? i.e I can see which station belongs to which line?

I have seen this. This API is built by Overpass DE but do not know whether this is pulling data direct from OSM.

Edit: unless I am not able to spot it, neither of these two does the job in R using osmdata package.

paris = opq(bbox = "paris") %>%
  add_osm_feature(key = "station", value = "subway") %>%

paris2 = opq(bbox = "paris") %>%
  add_osm_feature(key = "type:RATP", value = "metro") %>%

here you get the stations: https://overpass-turbo.eu/s/IC4

An easy way to get into overpass is to use the 'assistant' in https://overpass-turbo.eu/

There you put in station = subway and the engine makes the query you need.

You can export the results in different formats.

EDIT: from comment, to get "tracks" or lines, https://overpass-turbo.eu/s/IHA

  • Thank you for the answer. Two things, maybe you could improve the answer. I think that gives me 431 stations, which is not the ~302 I am after and also I cannot see the "line" number of the metro lines. Cheers. – Hiwa May 2 '19 at 12:54
  • 1
    The number of the metrolines are not added to the railway-stations. With this query you return both: overpass-turbo.eu/s/IHA. If you want to add this information to the railwaystation (= node) you have to make spatial join in for example QGIS – PieterB May 4 '19 at 20:19
  • If I am allowed, I will replace your query in the answer with the one in the above comment. I just downloaded that as geojson and I get 312 rows. Plotting line 4 is close to what I see here so I think I should mark it as "ticked". – Hiwa May 8 '19 at 10:51
  • Processed in R !image – Hiwa May 8 '19 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.