[OSM-talk-fr] Get data using Overpass API

Yosra Zguira zguirayosra at gmail.com
Lun 30 Nov 13:47:57 UTC 2015


I need to get an osm file which contain nodes, ways and relations of
bicycle stations in Lyon, France. I will use this file for simulation using
SUMO, so I need to convert it to an .net.xml file. Without relations I
can't convert it to .net.xml file.

2015-11-30 14:39 GMT+01:00 Marc Gemis <marc.gemis at gmail.com>:

> Reply in English, because original post was in English
>
>
> This query returns only relations with the tags amenity=bicycle_rental
> and network=Velo'V.
> In case there are no such relations, the query will not return them.
> I would expect that most bicycle_rental places are mapped as node and
> occasionally as (closed) ways. I see no need to map them as relations.
>
> regards
> m
>
> On Mon, Nov 30, 2015 at 2:35 PM, Yosra Zguira <zguirayosra at gmail.com>
> wrote:
> > Hello,
> >
> > I use the Overpass API to get osm data. I have this query:
> >
> > /*
> > This has been generated by the overpass-turbo wizard.
> > The original search was:
> > “amenity=bicycle_rental and network="Vélo'v" in "Lyon, France"”
> > */
> > [timeout:25];
> > // fetch area “Lyon, France” to search in
> > {{geocodeArea:Lyon, France}}->.searchArea;
> > // gather results
> > (
> >   // query part for: “amenity=bicycle_rental and network="Vélo'v"”
> >   node["amenity"="bicycle_rental"]["network"="Vélo'v"](area.searchArea);
> >   way["amenity"="bicycle_rental"]["network"="Vélo'v"](area.searchArea);
> >
>  relation["amenity"="bicycle_rental"]["network"="Vélo'v"](area.searchArea);
> >
> > way[highway](area.searchArea);
> > );
> >
> > // print results
> > out body;
> >>;
> > out skel qt;
> >
> > Whe I ran it, it generated only nodes and ways and not relations.
> > How can I please modify this query in order to download an osm file which
> > containes nodes, ways and relations?
> >
> >
> > _______________________________________________
> > Talk-fr mailing list
> > Talk-fr at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/talk-fr
> >
>
> _______________________________________________
> Talk-fr mailing list
> Talk-fr at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-fr
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/talk-fr/attachments/20151130/d1d745c3/attachment.htm>


Plus d'informations sur la liste de diffusion Talk-fr