Does Google/Bing/HERE Maps Autosuggestion Make Request for Every Keystroke? - google-maps

I've noticed that Map services mention how different types of requests count towards an application's quota, but didn't see how autocomplete requests compare.
I'm trying to calculate the number of transactions/requests that will be made if an application utilizes an autocomplete feature for address searches. What I wanted to know is that when a user enters an address for geocoding, every time a new list of suggestions is returned (i.e. for every keystroke) is it counted as a request -- i.e. does it count as multiple requests instead of a single request?

In Bing Maps, the way it works is that a transaction isn't created until the user has selected a suggestion. Individual keystrokes are not counted. At the end of the day its the suggestion the user selects that matters. Additionally, Bing Maps also creates a session when that first transaction is created. What this does is if the user performs another search and selects another suggestion, the second transaction will be marked as non-billable as it is considered part of that session. This assumes that the autosuggest module wasn't reloaded some how (i.e. page refresh). So with Bing Maps, if a user needs 3 key strokes or 7, there is no cost until they actually select a suggestion. This should make calculating the required transactions for your application much easier. More often than not developers will require the user to use the autosuggest feature only once as part of a user experience, usually on a single page. So you basically would only need to know the number of page views for the page in that part of the user experience. Also worth noting, if you use the autosuggest module in Bing Maps with the interactive map, the autosuggest module will not generate any billable transactions as it is grouped into the map user session. For example, if you have a page that loads a map and also provides an autosuggest box, the user can type as much as they want in the autosuggest box and select as many suggestions as they want. They can also pan/zoom, calculate directions and use any feature of Bing Maps that you expose in your app. This will generate a total of 1 billable transaction for when the interactive map was loaded and all other transactions will be grouped into the map session and marked as non-billable.
Looking through HERE Maps documentation I can't find any mention of an autosuggest or autocomplete feature.

Related

What if I have no results to display on a map after calling Google Distance Matrix API

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

Can users rate a restaurant by using google places API?

I am able to get restaurants list, timings, rating and displaying them in my Android application by using Google places API. This is API
https://maps.googleapis.com/maps/api/place/search/json?location=13.0104611,80.2086226&
radius=10000&types=cafe|restaurant&hasNextPage=true&nextPage()=true&sensor=false&key=MY_API_KEY
As per my client requirement, Users should be able to give rating to a specific restaurant from my application, this restaurant got from above Googel API.
Kindly tell me whether possible or not giving rating to a restaurant from above API . Thanks in advance.
According to the documentation, using the Google Places API Web Service, the following place requests are available:
Place Searches return a list of places based on a user's location or search string.
Place Details requests return more detailed information about a specific Place, including user reviews.
Place Add allow you to supplement the data in Google's Places database with data from your application.
Place Photos gives you access to the millions of Place related photos stored in Google's Place database.
Place Autocomplete can be used to automatically fill in the name and/or address of a place as you type.
Query Autocomplete can be used to provide a query prediction service for text-based geographic searches, by returning suggested queries as you type.
The only request that allows to put data is Place Add, but according to the documentation it adds a place that is available immediately in Nearby Searches initiated by your application and also enters a moderation queue to be considered for Google Maps.
So the answer is that for the time being it's not possible to add reviews to Places using the Google Places API Web Service.

Caching Static Google Maps server side

I'm using Google API for Work and has .Net available as backend (though any language is fine for logic).
Current implementation
I've a dropdown where user selects a city and Google Maps JavaScript widget alongside displays presence locations for a company in that city. If there are 10 cities, all users will always see the same visual on map for each city. However, if they zoom or move map, then its specific to the user. When user changes the dropdown. I know the latitude and longitude of all locations and are in database.
Question:
When user changes a city, I noticed there are lot of requests made to map API by widget, most of which download portions of map image and some download scripts. Are all requests counted for billing OR the there's some specific request which counts to a usage hit?
Since Google allows limited caching (but not pre-fetching), I want to cache the first request made by end user for each city (so if there are 10 cities, 10 keys) for a day. If user does zoom/move, that won't be cached. But how to achieve initial cached rendering as there are so many requests that JavaScript widget makes and where in maps widget do I hook server caching?
Thanks

Google Places Autocomplete API flow

I want to use Google Places Autocomplete API to provide search-while-typing for an Android app.
the Autocomplete API returns IDs and References, requiring an iteration through the results to get the details (such as name and geometry) for each place, this is slow and results in a bad user experience. also, many API calls are done for each key press.
is there a better way to provide such searching capability with Google Places ?
Is there a reason you need to have the geometry for each possible autocomplete place after each keypress of the API? Showing this seems like generally it would not be a great user experience, and is not what the Autocomplete API was designed for.
In theory the name (description) should be enough for the user to decide which item they're interested in, and then after a user has actually selected something you can request additional details as needed.
On the other hand if you already have some information about the name of the place, you could use the Places API (not Autocomplete) to get additional details of matching nearby places:
https://developers.google.com/maps/documentation/places/#PlaceSearchResponses

Will Google Places Autocomplete return places my app has added via place report?

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 -