Google Static Maps for iOS - ios

I use the static map google webService in my iOS app.
And when i read the google document of the static map, i found this Note:
https://developers.google.com/maps/documentation/staticmaps/?hl=fr#Limits
The Google Static Maps API has the following usage limits:
25 000 free static map requests per application per 24 hour period.
Additional image requests can be purchased on a per application basis at the rate currently listed in the FAQ. Additional quota is purchased through the API Console and requires the use of an API key.
If a user exceeds these limits, the server will return an HTTP 403 status.
Then i created an app that sent more then 25 000 request to the WebService,
but my application from the other devices and the iOS still working without any problem.
Please someone can explain to me, what the static map WebService work, because i reached the number max of the request/application and my ios App still work on the other devices ?

From an ip or from a device number of free request that can be made from google is 25000 request only per day after this you have to pay to google for it. So answer to your question is request from a particular ip is considered for calulating total requests.

Related

YouTube DataApi v3 subscription limitations

I am using https://developers.google.com/youtube/v3/guides/push_notifications to continually monitor ~ 2,000 channels for new videos etc.
Up until last week, I wasn't having any problems, with pubnubsubbub, however, for some reason, I am getting 403 when I am trying to access (via curl or requests) https://pubsubhubbub.appspot.com/subscribe saying nothing more than
<p>
<b>403.</b> <ins>That’s an error.</ins>
<p>Your client does not have permission to get URL <code>/subscribe</code> from this server. <ins>That’s all we know.</ins>
</p>
So my questions are:
is there any limit (either IP or time or quota) that is documented somewhere and I am somehow hitting? As xml calls were "unlimited" and i do not see any difference in the official YouTube Data Api documentation
have somebody found a better pub/sub channel (either paid or not) with YouTube DataApi 3
if somebody had a similar situation, how long my "ban" will stay
As suggested by Marco Aurelio, I am adding my solution.
My VPS provider had some bans from Google on their IPv6 network in the data center where I had my server running. Thus by contacting them and fixing my network settings the pubsubhubbub continued working without issues.
So the tip for future debuggers stumbling upon here is trying to curl any other Google API (e.g. a function) that you are 100% sure it works and if you are still getting 403, then your IP address range is blocked for some reason (like data center ban in my case).
If you continue to have the problem and getting the "notification" with a maximum delay of 6 minutes isn't a problem, here is a workaround.
I don't use pubsubhubbub but you can simulate its advantages. Indeed you have 10 000 quota a day, using PlaylistItems: list with the uploads playlist of the channel found with contentDetails in part by using Channels: list.
In that way you can check for new videos for 50 YouTube channels for 1 quota so if you want to check your 2 000 channels you have to spend 40 of quota.
If you want to uniformly check during the day you can so make 250 global checks a day, so every 346 seconds (almost 6 minutes).
Of course you have to store your last videos found for a YouTube channel in order to check if there is any difference during your new global check.
If you just want a boolean response whether or not your current request response is different from the previous one, you can check the etag.

Google Places API for iOS Quota

We have an iOS app which uses Google Places API for iOS. We realized upon launch that we receive more than a 100 requests in a day which is causing our app to break because we reached our limit.
Now, we've increased our limit with the help of Google and I want to know if already generated API keys will be affected or we have to generate new API keys .
Also, where can we see the quota used on the console. because what we have currently shows 0/150000
Yes, your already generated keys should have the new limit of 150,000.
Also, for the quota, it does not update immediately, you'll have to wait a bit till they start showing up.

Google Maps SDK for iOS - Delivery Timeframe

I'm wondering if anyone has requested and actually received an API key for the Google Maps iOS SDK. I put in my own request over a month ago now, and still nothing despite having a shipping app that is ready to make immediate use of the new SDK (and which is picking up some negative feedback due to inaccuracies in Apple's maps).
Has anyone been issued an API key for the Google iOS SDK, and if so, how long did you have to wait for it and what were the circumstances of your application (i.e. did you have an app already deployed, how popular was it, etc.)?
I'm hoping that if we can unravel the criteria Google uses to issue these keys we can allow people with pending requests to come up with an approximate estimate of when their request might be granted.
As I mentioned in this answer, I applied for access on the 13th of December, and then received an email saying I'd been approved on the 17th of December.
I have an app on the app store which used to use Google Maps, but I had to remove the maps when iOS 6 came out. Not sure if this had anything to do with it, or if I was just lucky because I happened to hear about the SDK almost immediately after Google announced the new SDK, and I applied for access right away.
When I received the email saying that I'd been approved, I was added to a google group - which is how Google sends out notifications of updates. From the looks of it that group only has 77 members, so if that's equal to the number of people which have been given access, I guess Google are rolling out access quite slowly.
UPDATE:
As of the 21st of February, it looks like the SDK is now open to everyone.

Googlemaps OVER_QUERY_LIMIT

I am facing a strange problem concerning Google Maps' geocoding/reverse geocoding service.
My iPhone app uses Google Maps services in order to geocode addresses or reverse geocode points of a map view. The URLs I am using are:
#define WS_GEOCODE     #"http://maps.google.com/maps/api/geocode /json?address=%#&sensor=true&l anguage=%#"
#define WS_REV_GEOCODE #"http://maps.google.com/maps/api/geocode/json?latlng=%#,%#&sensor=true&language=%#"
The problem is that when I use Wifi everything works well, but when I access internet through the carrier's network I always get googlemaps status OVER_QUERY_LIMIT.
Any ideas?
Google maps has very strict limits for personal use. I guess that the IP it detects has been using their service too much and has been blocked. Next step is the professional paying service which costs $10K .... a year ....
May I suggest (as I just did the switch myself yesterday) to use Bing's geocoding service. It works nearly as good and the limits for free use are A LOT higher than google's. Google kicks you out after 2500 requests per day. a Bing "developer" app allows 250.000 calls a year or something like that.
Imagine the topology of your connection in the case of mobile carrier: your phone connects to the carrier server through an APN, the carrier server forwards the requests on your behalf. The external IP that Google Maps API sees is always that of your carrier.
The Google Maps API terms of use say something about usage limit; so I'm thinking there's a possibility that a lot of devices connected to the same server generate quite an amount of requests and reach that limit cumulatively.
there is a tricky for this...
with php you can use sleep function to delay another request php sleep

Twitter API rate limits for posting updates

I have an application for sending out say around 100+ tweets every day. I am using OAuth for authentication. The twitter API says that post messages are not rate limited. However I am receiving the following error:
403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http://support.twitter.com/forums/10711/entries/15364).
error - User is over daily status update limit.
request - /1/statuses/update.json
Relevant discussions can be on the Internet at:
http://www.google.co.jp/search?q=15bb6564 or
http://www.google.co.jp/search?q=010f3e5b
TwitterException{exceptionCode=[15bb6564-010f3e5b], statusCode=403, retryAfter=0, rateLimitStatus=null, version=2.1.11}
Does this mean that status update API calls are also rate limited?
Thanks
Yes Status updates are rate limited. but 100 per day won't be an issue.
Current Twitter Limits
The current technical limits for accounts are:
Updates: 1,000 per day. The daily update limit is further broken down into smaller limits for semi-hourly intervals. Retweets are counted as updates.
From : http://support.twitter.com/forums/10711/entries/15364
Are you using some kind of shared hosting? the twitter API is limited by IP address and if there are other apps on your IP address also using the twitter API then you will be sharing rate limits with them. I ran into this issue with a tiny app on google app engine, despite only making about 10 requests in an hour.
The update limit is 1000 per day.But these are divided into intervals in which different amount of tweets are allowed per window. You can follow this thread.
Does this mean that status update API calls are also rate limited?
Yes,but not directly. As "The twitter API says that post messages are not rate limited" is true but not all POST requests are status update calls.

Resources