This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass turbo: runtime error: Query timed out in “query” - What to do?

2
1

I like to download all places(nodes) which are tagged in osm with highway"="services and which contains "Raststätte" in the name value, which have a maximal distance to a motorway of 100 meter.

When I run my query on a smaller area it work fine but with this I get a error message like this:

An error occured during the execution of the overpass query! This is what overpass API returned:

runtime error: Query timed out in "query" at line 17 after 199 seconds.

Below is my querry:

[bbox:45.0,4.7,50.2,9.3];

(

  node["name"~"Raststätte"];   (way["name"~"Raststätte"];>;);   (relation["name"~"Raststätte"];>;);
     node["highway"="services"];   (way["highway"="services"];>;);   (relation["highway"="services"];>;); )->.rasten;

way(around.rasten:100)["highway"="motorway"]
->.motorway;

( node.rasten(around.motorway:100);   way.rasten(around.motorway:100);   rel.rasten(around.motorway:100);  )->.matchingRasten;

(.matchingRasten;); out body; (._;>;); out skel qt;

What possibility I have to solve this problem?

asked 12 Apr '17, 10:49

ino_oni's gravatar image

ino_oni
46113
accept rate: 0%

retagged 16 Apr '17, 13:13

FredrikLindseth's gravatar image

FredrikLindseth
815132435


One Answer:

4

You get to much hits on your query, this leads to it timing out. The solution is to increase the timeout like so

[timeout:50];

Have a look here for some examples

answered 12 Apr '17, 11:01

FredrikLindseth's gravatar image

FredrikLindseth
815132435
accept rate: 13%

edited 12 Apr '17, 11:01

perfect. Because of another problem I needed to use http://overpass-api.de/query_form.html but its exactly I was looking for

(12 Apr '17, 11:30) ino_oni

Source code available on GitHub .