Only 250 requests ?

143 views
Skip to first unread message

nata

unread,
Jan 7, 2013, 11:10:31 AM1/7/13
to google-map...@googlegroups.com
Hi all,

I have a script where I am doing 1 request of an image every second. Something like this:
http://maps.googleapis.com/maps/api/staticmap?center=44.058683,-70.861028&zoom=12&size=640x640&maptype=roadmap&sensor=false&format=png32

I can only download about 250 images and then I get the HTTP 403 status. I don't understand why since the API says that 25 000 free static map requests per application per day are allowed.
What I am missing ?

Thank you for your help,
nata

Jeremy Geerdes

unread,
Jan 7, 2013, 11:20:35 AM1/7/13
to google-map...@googlegroups.com
The Geocoding API uses a true rate limit. I would guess the static maps API does the same. In other words, since there are 86,400 seconds per day, your requests would have to be spaced at approximately one per 3.5 seconds.

That said, I have a hard time imagining such an application which would conform to all the other terms and conditions in the TOS. I would suggest reading through the TOS, making certain that your application is in compliance, and then - if it is - adjust your timing.

jg


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/gHdMiiEEV9UJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.



--
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

nata

unread,
Jan 7, 2013, 1:51:19 PM1/7/13
to google-map...@googlegroups.com
Even if I wait 5 seconds between every request, I get the error after 250 images... This is not the reason Jeremy

Rossko

unread,
Jan 7, 2013, 3:42:24 PM1/7/13
to google-map...@googlegroups.com
You're not using the recommended key.  Without a key, I believe the limits default to the older keyless limit of 1,000 per day, or 250 per 6 hours.
 

nata

unread,
Jan 7, 2013, 8:39:02 PM1/7/13
to google-map...@googlegroups.com
Thank you Rossko ! Can I ask for a key and then use it in different computers (with different IPs) ?

It is not a web application what I am developing, is a non-commercial software that needs to do several requests and 250 is not enough. Should I ask for a key for every computer that will use the software? I am a little bit confused about the TOS...


Thank you for your help,
nata




Andrew Leach

unread,
Jan 8, 2013, 3:52:51 AM1/8/13
to google-map...@googlegroups.com
On 8 January 2013 01:39, nata <bernat.pu...@gmail.com> wrote:
> Thank you Rossko ! Can I ask for a key and then use it in different
> computers (with different IPs) ?

Of course. The key is used in the client request. A website which uses
a static image has a key, gets and displays the image at the client's
IP address.

The key links the request to your Google account, and is used for
usage-limit tracking.

> It is not a web application what I am developing, is a non-commercial
> software that needs to do several requests and 250 is not enough. Should I
> ask for a key for every computer that will use the software? I am a little
> bit confused about the TOS...

I can't see any use where this does not amount to bulk download of
Google data, which is prohibited. See the Terms, 10.1.3(c). I can't
see how 250 images at maximum size is not a bulk download of imagery.

And, you are still limited to 25000 per day: even if 250 in a burst
were enough, you could only have 100 copies of your software in use
per day. With more requests, you must have fewer copies being used.
Note too that 25000 is split into six-hour chunks: the limit is
implemented as 6250 per six hours, which limits you to 25 copies of
your app. This could be changed to be 1042 per hour without changing
the stated daily limit, but it seems that a limit like that would
cripple your app.

If you have confusion about the Terms you should consult a lawyer.
Members here can give you their opinion, but it's not legal advice.

nata

unread,
Jan 8, 2013, 8:37:13 AM1/8/13
to google-map...@googlegroups.com, andrew....@gmail.com
Thank you for your reply Andrew, things are getting clear now.
nata
Reply all
Reply to author
Forward
0 new messages