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

overpass api : very slow process

0

Hi to all,

I feel overpass API is very very slow.

http://overpass-api.de/api/interpreter?data=[out:json];way%28around:5000,13.0236291,%2080.2652704%29;out;node%28around:5000,13.0236291,%2080.2652704%29[%27addr:street%27];out%20;

I was setup in my system, but still very slow in my local server too. Any suggestion to improve speed & performance ?

asked 03 Feb '16, 12:42

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

edited 04 Feb '16, 09:02

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

Please clarify what do you want your query to return.

(03 Feb '16, 17:05) RM87

That query returns a lot of data (9+ MB). What is your goal? Maybe try with a smaller around radius?

(04 Feb '16, 08:25) ivanatora

@RM87: I want to get all streets from a region/radius. If i get from node only, i got very few data only. So I want to retrieve ways too from that region (from ways also i can get some living streets).

@ivanatora: Yes. If i give around 500 meter, then its working little bit better. But I need to get all streets in a small town or around 5kms.

(04 Feb '16, 11:13) Rajavelu_M

One Answer:

1

Your current query returns all ways within 5km radius + nodes tagged addr:street within 5km radius.

This query would get you only the streets resulting in ~2MB of data.

answered 04 Feb '16, 16:32

RM87's gravatar image

RM87
3.3k23753
accept rate: 22%

Source code available on GitHub .