How to optimize requests on ways?
Hi, I am sending this type of requests to Overpass API :
([http://overpass-turbo.eu/s/8p9][1]):
http://overpass-api.de/api/interpreter?data=
[out:json][timeout:15]; [out:json][timeout:7]; (
way(around:1000,48.9,2.4)
way(around:5000,48.9,2.4)
["highway"~"cycleway|footway|path|track"]
["access"!="private"]
);
out body;>;out skel qt;
geom;
It retrieves all the ways around a certain set of lat/lon. And it works well as long as the number of results is reasonable. Otherwise, the timeout is reached quite easily. Given that For this particular example, the limit seems to be 383 elements in the returned object.
I only need the end nodes coordinates for the ways that are long enough, nodes's coordinates, i.e. elements.bounds, as well as tags.highway. In this context, do you have any idea I could optimize this request? Only Maybe only requesting only coordinates (no need for certain elements of the street names etc.); requesting only the end nodes; exclude shorter ways?
default returned object if it's possible?
CheersCheers
[1]: http://overpass-turbo.eu/s/8p9