[OSM-talk-be] Overpass-turbo issue with Luxembourg
Julien Minet
julien_wa at yahoo.fr
Mon Feb 2 21:24:33 UTC 2015
OK, I thought about that but I don't know how to combine this with the tag "name"?
Also, I wonder if there are a way to search by the id of the OSM object. For instance, how to search for a specific town/village if there are several places with the same name, which is widespread in the world.
Julien
De : Sander Deryckere <sanderd17 at gmail.com>
À : Julien Minet <julien_wa at yahoo.fr>; OpenStreetMap Belgium <talk-be at openstreetmap.org>
Envoyé le : Lundi 2 février 2015 16h16
Objet : Re: [OSM-talk-be] Overpass-turbo issue with Luxembourg
You should include the correct admin_level in the query
A region has an admin_level=4, a province has admin_level=6, an arrondissement has admin_level=7, a municipality has an admin_level=8, a part-municipality or city district has admin_level=9 (note that part-municipalities aren't mapped everywhere, since there's no current data about it).
I know it can be confusing with provinces and cities having the same name (it happens even more often with arrondissements and cities), but this is about the only solution (else you start losing a lot of rendering space, or have to add a bazilllion of other tags for all different languages).
Regards,
Sander
2015-02-02 16:04 GMT+01:00 Julien Minet <julien_wa at yahoo.fr>:
Hi,
I have an issue with overpass-turbo and maybe someone could help me. I want to make a query over the "Province de Luxembourg" in Belgium, but I cannot separate with results from the country of Luxembourg, since they have the same name:
Example:
[out:json][timeout:25];
// fetch area “Luxembourg” to search in
area['name:fr'='Luxembourg']->.searchArea;
// gather results
(
// query part for: “Shop”
node["shop"](area.searchArea);
way["shop"](area.searchArea);
relation["shop"](area.searchArea);
);
// print results
out geom;
>;
An idea would be to use another tag than the name, such as a OSM id for each object, or another unique tag. I tried, but I could not succeed. Also, if you want to make a search over 'Namur', you have the data of the whole province of Namur, and not the city.
Yesterday at FOSDEM, Roland Olbricht had a similar issue: he wanted to show a query over the whole region Brussels using the name "Bruxelles", but he just got the results over the city of Bruxelles.
Any ideas?
Julien
_______________________________________________
Talk-be mailing list
Talk-be at openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20150202/41e08951/attachment.htm>
More information about the Talk-be
mailing list