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:



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


( 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

accept rate: 0%

retagged 16 Apr '17, 13:13

FredrikLindseth's gravatar image


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


Have a look here for some examples

permanent link

answered 12 Apr '17, 11:01

FredrikLindseth's gravatar image

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
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: 12 Apr '17, 10:49

question was seen: 7,005 times

last updated: 16 Apr '17, 13:13

powered by OSQA