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

Why this query it’s so slow (Overpass)?

0

Hi, I want to get an intersection between two streets in my city using Overpass API. When I execute it, the response takes 2 minutes or more.

Using overpass turbo:

area[name="Montevideo"]->.boundaryarea;
way(area.boundaryarea)[highway][name="Avenida Italia"];node(w)->.n1;
way(area.boundaryarea)[highway][name="Avenida Bolivia"];node(w)->.n2;
node.n1.n2;
out meta;

Using the browser:

http://overpass-api.de/api/interpreter?data=area[name="Montevideo"]->.boundaryarea;way(area.boundaryarea)[highway][name="Avenida Italia"];node(w)->.n1;way(area.boundaryarea)[highway][name="Avenida Bolivia"];node(w)->.n2;node.n1.n2;out;

Mybe I made the wrong filter?

Thanks!

asked 15 Sep '16, 18:55

PabloGarin's gravatar image

PabloGarin
11112
accept rate: 0%

edited 16 Sep '16, 09:25

escada's gravatar image

escada
19.0k16166302

general note: this help system keeps linking only a part of the URL, despite the "code" formatting.. just copy and paste it to try the URL.

(15 Sep '16, 20:59) aseerel4c26 ♦

Source code available on GitHub .