Hi, I'm trying to get a list of roads within a community, but I get a timeout error when I try this. On very small queries it does work (e.g. highway=path). And on bbox too. Is this particular to querying within areas?
asked 11 May '17, 10:35 joost schouppe reverted 11 May '17, 15:35 |
One Answer:
I can't offer an underlying explanation as to why, but the timeout is related to the area query returning multiple areas. A workaround is to request a specific area, like: Use pivot to inspect the results of an area query:
answered 11 May '17, 11:08 maxerickson |
Increasing the allowed time usually works too (i.e. set timeout:250 instead of timeout:25)
Yes, a larger time-out did the trick in this case. But I somehow missed clicking the zoom to data, so I didn't see there were more Halle in the world. My first try to limit the results to Flemish communities did not seem to work though... ( area["name"="Vlaanderen"]["admin_level"="4"]; )->.b; ( area["name"="Halle"]admin_level=8; )->.a;
OK, found it: you need to first create areas, then require your results to be in both areas simultaniously: http://overpass-turbo.eu/s/oYf
I don't know the performance but worry about the
way[highway](area.b)
query being expensive. An alternative way to find the inner area is to use a map_to_area query: http://overpass-turbo.eu/s/oYgIt's a known issue that area limiters don't work on area queries.