I have an application with leaflet and overpass.api written in javascript. I use overpass-layer plugin to query to OSM data. My problem , when i query 2 times to overpass.api i get an Too Many request error.
http://overpass-api.de/api/status
status shows me that there is a limitation. There is 1 available slot, and after i send a request my IP is blocked for a time period (30sec-3min). Why is my IP banned already after 1 query? And why for so long?.
in wiki there stands http://overpass-api.de/api/ :
"Both servers have a total capacity of
about 1.000.000 requests per day. You
can safely assume that you don't
disturb other users when you do less
than 10.000 queries per day or
download less than 5 GB data per day."
Need to query more than just once in 3 min. How can i achieve that?
this is an example query i sent with my application.
I just created the biggest query possible with my application slot is available after 5min when i use this query:
area[name="Berlin"]->.a;
(node(area.a)["landuse"="industrial"]["name"];
way(area.a)["landuse"="industrial"]["name"];
relation(area.a)["landuse"="industrial"]["name"];
node(area.a)["landuse"="industrial"]["phone"];
way(area.a)["landuse"="industrial"]["phone"];
relation(area.a)["landuse"="industrial"]["phone"];
node(area.a)["landuse"="industrial"]["contact:phone"];
way(area.a)["landuse"="industrial"]["contact:phone"];
relation(area.a)["landuse"="industrial"]["contact:phone"];
node(area.a)["landuse"="industrial"]["website"];
way(area.a)["landuse"="industrial"]["website"];
relation(area.a)["landuse"="industrial"]["website"];
node(area.a)["building"="industrial"]["name"];
way(area.a)["building"="industrial"]["name"];
relation(area.a)["building"="industrial"]["name"];
node(area.a)["building"="industrial"]["phone"];
way(area.a)["building"="industrial"]["phone"];
relation(area.a)["building"="industrial"]["phone"];
node(area.a)["building"="industrial"]["contact:phone"];
way(area.a)["building"="industrial"]["contact:phone"];
relation(area.a)["building"="industrial"]["contact:phone"];
node(area.a)["building"="industrial"]["website"];
way(area.a)["building"="industrial"]["website"];
relation(area.a)["building"="industrial"]["website"];
);
out body;
>;
out skel qt;
It gives me all tags with name, phone,contact:phone,website
for landuse=industrial and building=industrial
asked
02 Oct '16, 22:04
JsonKh
26●2●2●4
accept rate:
0%
Your example appears to be data returned by the query not the query.
@SK53: the query is in the link's URL
So it is, but that requires more effort on my part to cut paste & format!
This related question contains possibly usefull feedback: https://help.openstreetmap.org/questions/52384