Is Google Maps blocking me? - google-maps

I'm programming web application that works with Google Maps and I need to generate PDF output so I decided to use static API. My application will be using set of 1500 small map images (100*100px). I dont want to ask Google for every image thousand times a day so I wrote a script to download all images and save it to my server where images will be used from. After downloading 300 images my server gets this error:
Warning: readfile(http://maps.googleapis.com/maps/api/staticmap?size=100x100&maptype=roadmap&markers=icon:http://mediup.martinstrouhal.cz/arrs/210.png%7Cshadow:false%7C50.078522,14.436551&sensor=false&zoom=16) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
Does this mean that google is blocking me permanently?

You are missing the API key.
Without including your API key The Streetview Images API is throttled by IP to 1000 images per 24 hours and 5 images per minute, both of which you are likely to hit if you do not use the key. With the key you can pull 25000 images / day
Format should be:
http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,-73.988354&sensor=false&key=API_KEY
Docs for streetview include how to get an API key.
https://developers.google.com/maps/documentation/streetview/?csw=1

It's likely that Google Maps has a throttle on it that will cut off anyone abusing the API. Since you are just storing the images, put a random wait in between each request and let it run for a long time until you get all the images you need.

It depends on whether you are using the Static Maps API or if you are doing direct tile access.
Direct tile access is prohibited by Google, so they will block you if the server suspects you're pulling down tiles for caching. They don't state the limits on this for security reasons.
Static Maps has a limit of 2500 per day per IP address, but it is throttled as to how many you can pull down per second.
In any case, using Static Maps or direct tile access to save imagery for later use is against Google's ToS.

According to many sources Googled - the ban lasts for 24 hours but found no really official answer on that.
Perhaps you could inform us how long your ban was.

Related

Google maps error after some time that is fixed 00.00 Pacific time

We are querying google maps service for static map image that stops working after some time (usually later in a day) with "StaticMaperror/Signature" error but we are not using Signature.
The problem is usually automatically gone after 00.00 AM (Pacific time) next day. There are no limits/thresholds configured on Google console portal for this API/key and it's not clear why we are getting this error after some time as it clearly looks like connected to some threshold/requests limit on on Google console portal
https://maps.googleapis.com/maps/api/staticmap?center=USA&zoom3&size=395x272&maptype=roadmap&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Based on this documentation, you are only allowed up to 25,0000 unsigned(no digital signature) static maps requests per day.
It is possible that you are hitting this limit which causes you to get those errors.
For more than requests 25, 000 requests, you are required to include a digital signature in your Static Maps API request. Here's a guide on how to generate a digital signature.
If you are still having issues or concerns regarding your specific Google Maps project, you can always reach out to Google Maps Platform support.
Hope this helps!

googleapis is not displaying map randomly some times

We are using API for static maps. Some times map is not displayed with the correct information, Instead it displays a crossed image . This is happening randomly for few seconds.
Ex1: https://maps.googleapis.com/maps/api/staticmap?center=51.4666667,-116.5833333&zoom=11&size=380%20x%20380&sensor=false&markers=51.4666667,-116.5833333
Ex2: https://maps.googleapis.com/maps/api/staticmap?center=51.4355096,-0.405238800000006&zoom=13&size=380%20x%20380&sensor=false&markers=51.4355096,-0.405238800000006
Thanks,
Kris
Most websites and applications may use the Google Static Maps API free of charge. However, if you consistently generate a high amount of traffic, usage limits apply and you will need to pay for extra usage. If your site or application generates 25,000 Static Maps image requests or more each day, for more than 90 consecutive days, Google will attempt to get in touch with you to talk about payment. Don't worry, if you go over the limits, Google won't immediately shut off your API access or display error messages on your site.
It is recommended that you sign up for an API key, so that you can track your usage via the Google APIs Console. Please note also that the following additional limits apply to applications that don't use an API key: 1,000 Static Maps image requests per IP address per 24 hour period, and 50 Static Maps image requests per IP address per minute.

How does Google keep track of map loads without API key?

I am implementing Google Maps in my web application. Since Version 3 I don't need an API key for accessing their servers.
Google is limiting the requests, though.
How are they doing that? If external users are accessing my website, one map load is generated.
Do I have now about 25,000 map loads per IP address or how to they
recognize my application?
They probably use the location/domain of the current document(this detail will be sended to the Authentication-service).
But as long as it's not documented this may only be an assumption, you'll have to ask google how they do it.

Google geocode api limits

I am utilizing the Google Maps API to obtain driving directions to several locations on one page. There are JQuery selectors on the page where a user can select a different locations and view the driving directions for that location.
I am loading all of the requests on page load and I seem to be hitting a limit when I load more than 10 where it reports the remaining addresses cannot be found. I'm assuming there's a limit of 10 per second or something like that.
Does anybody have any more information about this, and ways to get around it besides subscribing to the premier service?
Thanks!
The Geocoding service is subject to daily limits per ip address (client) and a maximum request rate, which is probably what's causing the issue for you.
Here is a discussion from this morning on the rates of various services:
Geocoding Services - limits - Google vs Yahoo vs others?
But you will probably find this article/sample from Google more helpful (See the timing Geocoding Requests section):
http://code.google.com/apis/maps/articles/phpsqlgeocode.html
Basically the concept is to add a delay between your requests and to increase that delay each time you receive an error message.
Short answer seems to be:
https://developers.google.com/maps/articles/geocodestrat#quota-limits
I have found that the usage limits are different (lower) when using the javascriptV3 api than when using the web services api directly. I have been getting 'over usage limit' errors from the javascript api at rates as low as 1/s after the first 10 requests or so. The javascript api is determining this on the client side, as the only results showing up in the chrome network panel are successful requests. changing my code to use the web services directly for geocoding (and enabling that specific api in the api console) worked great for me.

ASP.NET & Google Maps API Error Code "620"on shared hosting

We have a Map It feature on a Real Estate Website and its on a Shared Host, the feature basically shows you the location of a property of works fine for a few hours a day but it stops working later in the day because of error Code "620" for the map request from Google maps API KEY.
we need this issue fix immediately.
Sample could be found here http://www.luxuryrentalsmiamibeach.com/The-Setai-Miami-Beach-13
click on the Map It link to see example
The "Map It" link works flawlessly ATM. The Google error Code 620 means G_GEO_TOO_MANY_QUERIES which either means you had too many API requests per IP per day or in an unspecified time frame.
About the too many API requests per day you cannot do much besides load balancing, changing your IP or paying for the Google Maps API. About the too many API requests per time frame (e.g. 2000 requests per minute) you can do something by delaying your requests.
Also think about caching your results serverside to not put too much strain on the Google servers.
There are several tutorials available on the 620 error and how to circumvent it, just google for it. To get you started you can read "Geocoding multiple addresses"