I'm just getting acquainted with OSM (OpenStreetMap), so this might be a total newbie question, but I'm looking for OSM Point of Interest data for all metro stations in Paris. I'm sure this info should be available, as maps I've seen maps of Paris using OSM data (e.g., mapbox.com default maps) display these metro stations, but I'm not sure where to look.

After reviewing the answers provided and doing some digging myself, my conclusions are:

Using Overpass API seems to be the most user-friendly as far as I can tell (when you get the hang of the query language, that is). For example, the query below returns the actual routing (metro lines) plus the referenced metro stations in nice JSON format.



The OSM Wiki has instructions for downloading to different formats.

And here is some information about shapefiles.

Cloudmade has produced exports to different formats for France and can be found here.

| improve this answer | |

One other approach is to use the Overpass javascript library to query the read-only OSM API. You can write a query that will select all of the relevant tags for an area. Here is an example from the wiki:

<bbox-query s="51.15" n="51.35" w="7.0" e="7.3"/>
<recurse type="node-way"/>
<query type="way">
  <has-kv k="highway" v="motorway"/>

To store the data in a more gis-friendly form you would probably need to parse it more but it seems like a quick way to access it.

| improve this answer | |
  • Interesting. Hadn't see that before - thanks for sharing it. – BradHards Dec 12 '12 at 9:43

One way to investigate this sort of thing is to use the "Export" tab on a sample area on the main OSM site.

If you export it as OSM XML, you will get a fairly large file, part of which will contain something like:

-<node version="12" timestamp="2012-10-29T00:16:52Z" changeset="13668746" visible="true" uid="158826" user="cquest" lon="2.3549579" lat="48.8460116" id="260040968">
   <tag v="Jussieu" k="name"/>
   <tag v="Jussieu" k="name:fr"/>
   <tag v="Жюссьё" k="name:ru"/>
   <tag v="station" k="railway"/>
   <tag v="1866" k="ref:FR:RATP"/>
   <tag v="1" k="STIF:zone"/>
   <tag v="metro" k="type:RATP"/>
   <tag v="no" k="wheelchair"/>
   <tag v="fr:Jussieu (métro de Paris)" k="wikipedia"/>
   <tag v="Жюссьё_(станция_метро)" k="wikipedia:ru"/>

The key part is the station + railway part. If you export a large enough area (or use a pre-made export, as suggested by Fezter) and query for that tag, you should get every node that is a railway station. If you only want metro stations, then you might want to filter by other tags as well.

| improve this answer | |

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.