I understand the usage limits for the Google places API.
However, once you have made a place details request, occasionally a location will have several photos available to it.
You can then retrieve the URL for these photos by using the following function:
photo.getUrl(maxWidth:200,maxHeight:200);
This works find and the actual URL of the image is returned. No ajax request appears to be made to Googles API, it simply returns a URL which you can then dynamically add to your DOM.
The URL's returned are like so:
https://lh4.googleusercontent.com/-SG8x8m7avHc/UWm8kgkkKTI/AAAAAAAAAA8/6_wM5YoSnlk/w1280-h1280-s0/2013-04-13
What I need to know is if accessing these images has any kind of usage limit attached to it.
Does each view count as one Google Places API request? Or are all views essentially free and it is only the initial Place details request which counts towards usage.
I know this question is old but it still isn't answered, so I'll try my best.
Does accessing these images have any kind of usage limit attached to it?
No, once you've successfully requested a place result using the Places API you are free to request as many image URLs relating to that result as you'd like with no usage limitations on the Places API itself.
However, Google will limit the number of images you may receive if you don't have a premium plan. So for instance, if you were to make 200 image URL requests for 'The Eiffel Tower', you might only receive up to 15 (or less) images if you're on a free plan. I know that sucks right.
Does each view count as one Google Places API request? Or are all views essentially free and it is only the initial Place details request which counts towards usage
If you're referring to image URL requests as a "view". Then the latter is true. Each image source requested won't increment the usage of the API.
If you're still uncertain here's a link to the Place Photo requests method in the Google Maps Places API Documentation
Each page of results must be displayed before displaying the next page of results. Note that each search counts as a single request against your usage limits.
refer here
Related
I would like to develop a service, using Google Distance Matrix API, where a user can enter their current location and a map will be displayed showing how many other users from their group have addresses in the same general area. For privacy reasons, I do not want to show any other details (location, name, address etc.) of those other users just the number of people.
In order to ascertain this information I was intending to make a call to the API and displaying under the map of their area a message like "There are 5 other people within a 3 minute drive of your address".
Can anybody tell me whether this meets the API limitation:
The Google Maps Distance Matrix API may only be used in conjunction with displaying results on a Google map. It is prohibited to use Google Maps Distance Matrix API data without displaying a Google map
If my requirements of the API are not acceptable, could anybody suggest another publicly available API that I could use in its place?
Thanks!
Yournavigation Api gives you distance from given points.
Try this request example.
You can find their usage policy here.
They said that there are no limitations on usage, except those regarding overload:
The routing API is open and freely available for everyone under the condition that you don't overload the server. Overloading the server in this context means: more then 1 request per second for sustained periods of time. Bursting multiple requests for short time-periods is not a problem though
If I use the google places api and/or autocomplete, followed by looking up the result's place id to get the address components do I use more of my quota? Or is using the place id lookup "free" or at least included as part of my original lookup's quota usage?
I have tried looking in the documentation, but cannot find anything that mentions the google place id specifically.
Google recommends using the google places api for the lookup followed by looking up the place id to get the address components... but nowhere does it say if this additional lookup is "free" or if it will cost me additional google credits.
When you execute a place id lookup, you are sending a place details request. Even if you send it from Google Maps JavaScript API places library it will be counted as a place details request.
Typically, you will see something like https://maps.googleapis.com/maps/api/place/js/PlaceService.GetPlaceDetails?2sen-US&8s... in network activity of your browser when you execute a place ID lookup.
This request will consume your quota.
The documentation states that each web service request consumes your quota:
https://developers.google.com/maps/faq#usage_quotacalc
I hope this clarifies your doubt!
I may be missing something, but the google places API indicates free usage of 150,000 requests per day (provided you enable billing). https://developers.google.com/maps/pricing-and-plans/
However, every request i place appears to be counting as "10-requests" on certain places on their website. i.e. i was capped today after making 15,000 requests. Specifically, on the billing page, it appears that each request is counted as 10. On the API Manager overview page, each request appears to be counted as 10 on the bar graph of usage, however on the response code overview it is correct. [i.e it indicates i have made 15,000 2xx Success requests within past 24-hours --- which is the case--- (and a bunch of 4xx errors, resulting from me hitting the max limit in the table...) whereas the bar graph indicates usage of 150,000].
My question is, is this a mistake, or is it the case that each request using the places API Web Services does count as 10?
There is a documented 10x multiplier on place Text Search requests:
from that documentation:
The Google Places search services share the same usage limits. However, the Text Search service is subject to a 10-times multiplier. That is, each Text Search request that you make will count as 10 requests against your quota. If you've purchased the Google Places API as part of your Google Maps APIs Premium Plan contract, the multiplier may be different. Please refer to the Google Maps APIs Premium Plan documentation for details.
So I am able to successfully get a list of places but I just realized that the results do not contain the URL for the establishment. For e.g. I get Pizza Hut and the physical address for it but I do not get the URL for it (www.pizzahut.com). Is there a way to get this may be by doing an additional query?
If the external website is available for the place, it should be set in website in the query result. If url is set, then that is the Google Place Page URL entered for the establishment. The reference result may be used to query for the same place later. (Documentation)
I am looking to find out if Google Places Autocomplete should return results including my submitted places.
I have submitted a place to the Place Report endpoint, and got an
id and ref back.
I then want my users to be able to select that
place from an autocomplete box - along with all the other results.
I have added the browser API key to the Javascript src.
Is this how it's designed to work, 'cos it's not working like that at the moment - or am I being impatient / doing something wrong.
I have verified my Place has been added by calling up the details using the reference it returned when I added it...
Your Place Reports are supposed to be available immediately to your application, but they must pass through a Google moderation process before they become generally available to all users. From the User Place Reports section of the Google Places API Docs:
Place Report requests are used to add new Places, or delete existing
ones. New Places will be available immediately in Place Searches
initiated by your application, and will enter the moderation queue to
be considered for Google Maps. A newly-added Place will not be
available to other applications until it has been approved by the
moderation process.
It isn't clear from your question exactly how you performed your Place Report, so I assumed you had used the Google Places API.
Some additional info, based on your comment:
It makes sense that you can see the place you have added using the Places API, but that it doesn't appear when using Autocomplete. The Places API is designed to be very thorough (and of course, the new place was added by your application), while the Autocomplete is focused on being high-speed, low-latency, and is based almost entirely on how Google rates the prominence of nearby places. Assuming the newly added place has not yet had many clicks, ratings, etc. on maps.google.com, it makes sense that it will not yet rate very highly in prominence.
There is some very good information about the differences between the Autocomplete tool and the general Places API in the Autocomplete Demo & Places API Demo & Discussion Video, given by Paul Saxman, a Developer Advocate at Google and Marcelo Camelo, Google's Technical Lead for the Places API. There is a portion near the end where they discuss adding new places and I think it will help clarify the results you are seeing. Anyway, I hope it helps -