wiktorn / Overpass-API

Overpass API docker image
MIT License
133 stars 47 forks source link

How to improve query speed? #96

Closed ArduinoHocam closed 1 year ago

ArduinoHocam commented 2 years ago

Hi, I'm trying to send a query periodically relatively in high frequency ( ~5-10 Hz ). But there is a bottleneck for this which is the query response time. When I try to query for a specific lat-lon with around, it is taking like 0.5 - 0.6 secs on Linux x8664 machine Ubuntu 18.04 here is my example query command: curl "http://localhost/api/interpreter?data=%5Bout:json%5D%5Btimeout:25%5D;(way(around:5,52.29201,-1.51869)%5B"highway"%5D;.;>;);out;"

Is there a way to improve this query speed? I also removed the around keyword and added bbox coordinates, it was worse. I've actually tried a few parameters for docker :

Thanks.

wiktorn commented 1 year ago

Sorry, I missed this one. I don't look into performance of the Overpass itself. Hopefully Overpass team can help you with that.