NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

1
1

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's gravatar image

JsonKh
26224
accept rate: 0%

edited 03 Oct '16, 12:39

Your example appears to be data returned by the query not the query.

(03 Oct '16, 09:12) SK53 ♦

@SK53: the query is in the link's URL

(03 Oct '16, 10:00) aseerel4c26 ♦

So it is, but that requires more effort on my part to cut paste & format!

(03 Oct '16, 10:08) SK53 ♦
1

This related question contains possibly usefull feedback: https://help.openstreetmap.org/questions/52384

(07 Oct '16, 19:46) alexvanderli...

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×74
×60
×54

question asked: 02 Oct '16, 22:04

question was seen: 4,440 times

last updated: 07 Oct '16, 19:47

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum