Differentiating QL results from inner/outer boundaries of same name

 0 The two examples below illustrate the issue Query1: [out:csv("name";false)] [bbox:-33.9480172,151.1107534,-33.8594833,151.2207935]; area[name="Sydney"]; way(area)[highway][name]; out; One of the many results (after obtaining lat-lon and distance) is: Airport Drive, Sydney, 2000, -33.9272726, 151.1694315, 2.637km Query 2: [out:csv("name";false)] [bbox:-33.9480172,151.1107534,-33.8594833,151.2207935]; area[name="Mascot"]; way(area)[highway][name]; out; One of the many results (after obtaining lat-lon and distance) is: Airport Drive, Mascot, 2020, -33.9272726, 151.1694315, 2.637km The two results are essentially identical (eg lat-lons) except for the name of the suburb. The problem appears to be due to there being an Administrative Area called Sydney which embraces all suburbs. Also, within the all-embracing Sydney, there is a relatively small suburb area also with the name Sydney (Both of admin level=10). If one is looking for streets in suburbs within a largish BBox well inside the larger Sydney (which includes by design, the smaller Sydney), a large number of 'duplicate' (spurious) streets are generated with a suburb name of Sydney, it would seem, due to the outer Sydney boundary. How can such a situation be avoided? asked 19 Aug '20, 03:35 rorylila 41●4●4●6 accept rate: 0%

 0 My bad! I had checked the admin_levels of both the inner and outer Sydneys and concluded they were both 10. However, re-checking, the admin_level of the outer Sydney is 7. Changing the definition of 'area'in the query corrected the problem: area["boundary"="administrative"] ["admin_level"="10"] ["name"="Sydney"]; way(area)[highway][name]; out ; answered 20 Aug '20, 02:54 rorylila 41●4●4●6 accept rate: 0%
 toggle preview community wiki:

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Question tags:

×61
×14
×9
×6

question asked: 19 Aug '20, 03:35

question was seen: 502 times

last updated: 20 Aug '20, 02:54