NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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

permanent link

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

Follow this question

By Email:

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

By RSS:

Answers

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:

×228
×9

question asked: 12 Apr '17, 10:49

question was seen: 9,722 times

last updated: 16 Apr '17, 13:13

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum