<div dir="ltr"><div><div><div>You should include the correct admin_level in the query<br><br></div>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).<br><br></div>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).<br><br></div>Regards,<br>Sander<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-02 16:04 GMT+01:00 Julien Minet <span dir="ltr"><<a href="mailto:julien_wa@yahoo.fr" target="_blank">julien_wa@yahoo.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div dir="ltr">Hi, <br></div><div dir="ltr"><br></div><div dir="ltr">I have an issue with overpass-turbo and maybe someone could help me. I want to make a query over the "<b>Province</b> de Luxembourg" in Belgium, but I cannot separate with results from the <b>country</b> of Luxembourg, since they have the same name:</div><div dir="ltr"><br></div><div dir="ltr">Example: <br></div><div dir="ltr"><br></div><div dir="ltr">[out:json][timeout:25];<br>// fetch area “Luxembourg” to search in<br>area['name:fr'='Luxembourg']->.searchArea;<br>// gather results<br>(<br> // query part for: “Shop”<br> node["shop"](area.searchArea);<br> way["shop"](area.searchArea);<br> relation["shop"](area.searchArea);<br>);<br>// print results<br>out geom;<br>>;</div><div dir="ltr"><br></div><div dir="ltr">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. <br></div><div dir="ltr"><br></div><div dir="ltr">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. </div><div dir="ltr"><br></div><div dir="ltr">Any ideas? <br></div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">Julien<br></div><div dir="ltr"><br></div></font></span></div></div><br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org">Talk-be@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-be" target="_blank">https://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br></div>