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

Marc Gemis marc.gemis at gmail.com
Lun 30 Nov 13:39:17 UTC 2015


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
>




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