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?

  ( area["name"="Halle"][admin_level=8]; )->.a;
out body;
out skel qt;`

asked 11 May '17, 10:35

joost%20schouppe's gravatar image

joost schouppe
accept rate: 12%

reverted 11 May '17, 15:35

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: area(3600206480)->.a;.

Use pivot to inspect the results of an area query:

out geom;
permanent link

answered 11 May '17, 11:08

maxerickson's gravatar image

accept rate: 31%


Increasing the allowed time usually works too (i.e. set timeout:250 instead of timeout:25)

(11 May '17, 11:53) Hjart

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;

(11 May '17, 15:56) joost schouppe

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

(11 May '17, 18:16) joost schouppe

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/oYg

It's a known issue that area limiters don't work on area queries.

(11 May '17, 18:33) maxerickson
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:


question asked: 11 May '17, 10:35

question was seen: 664 times

last updated: 11 May '17, 18:33

powered by OSQA