Is it possible to get the following summary from the google direction service api:
There is a summary property returned by the API but it doesn't matcch the summaries on google. (see screen grab)
Google Maps App != Google Maps APIs and Service
Just to set the correct expectations, you shouldn't expect the Google Maps APIs and Web Services and the Google Maps App to work in the exact same way at all times.
The Google Maps App gathers data from many different sources, such as Wikis, local business listings or Google+ information. The Directions API on the other hand uses a mix of information from the Geocoding API with other APIs to determine the best path to a given location.
What now?
In short, you can't expect these two different things to return the same, and the Directions API is not equipped to return all the data you are looking for.
You can however try the following:
Make multiple requests (as you pointed) and use the optional alternatives parameter;
Mix you data with data from third parties, like Google does.
Hope it helps !
Related
I have a list of places that I need to get reviews and a street view photo for using Google Places API. These will be displayed on a website that I am developing. I know how to query just one place but I have up to 100 places that I need to get information on. I would like to get this with just one API call if possible. I have the address, longitude, and latitude of each location currently.
I have already looked at the documentation on Google's site https://developers.google.com/places/web-service/search.
I would like to be able to take the results returned and use them to populate an infowindow on my website's google map for each of the locations.
I recently worked on third party api which provides the location data. FourSquare and TomTom and none of them provided bulk api to get the data. Here Bulk means passing multiple lat long and get the location detail with matched search.
At the end we have to loop over the location and call the api multiple times. If google api that you are using is paid service than you can ask to support team.
I have come across a Web application based on Java, JavaScript and JQuery. I need to report how many API calls are made by the application to the Google servers for showing the data on Map.
I am new to google maps. While going through the code, I find google.maps constructor being called at multiple location. Ex-
new google.maps.Marker, new google.maps.geocoder and so on.
I am confused whether all such instances with new keyword are all API calls interchanging data or they are method calls within the scripts.
Is there any way to find out exact amount of API calls being made. Basically my motive is to report API calls which charge cost.
I recently used this API Console to calculate Google Maps JavaScript API calls. You can use it for a bunch of different Google APIs.
Google API Console:
https://console.developers.google.com/
Refer docs at:
https://developers.google.com/identity/sign-in/web/devconsole-project
Hope, it's helpful.
I recently (like 4 hours ago) added an api key and enabled billing for Google Cloud Platform so my Google Maps Javascript API wouldn't get blocked at 25,000 places autocomplete requests. I expected to see usage statistics in Google Cloud Platform immediately but still it shows zero usage activity. Am I doing something wrong?
I think you are checking the wrong API.
Try going to Google Places API Web Service : Key features include autocomplete, search, place picker, photos and add place
OR
Google Maps JavaScript API: build and style a map onto your website.
Check the usage statistic of these two API to see the request related to place autocomplete. Hope this helps
Can I use more than one google maps API key in the same app?
I'd like to realize following two features on my app:
To load GoogleMap by using Google Maps Android API, and search routes by Google Maps JavaScript API.
To get multiple routes at high speed by using multiple Google Maps JavaScript API Keys. If one key, OVER_QUERY_LIMIT error will occur when DirectionsService.route() is called.
Does anyone know about this?
The limits for requested services by using the maps-Javascript-API apply to the user, not the the project.
So the usage of multiple keys wouldn't change any anything, because the user(IP of the client) is still the same.
I'm working on a website using the Google Maps Javascript API v3.
The free version of the API is limited by 25000 requests a day. But what happens if this limit is reached?
Is there a way to detect that the request limit has been reached so a fallback Google Maps Image API map can be displayed instead?
The usage limit is based on site or application, not the client IP address.
You can use the Google API console to monitor your usage if you add an API key to each of your map requests. I have not seen a way to query the usage programmatically.
https://code.google.com/apis/console
Per the comment below by #alds, it does appear that JS Maps API v3 and Static Maps API are separate services, therefore having separate request limits. Falling back to a static Google map image could help.
This also explains the usage limits in better detail:
http://googlegeodevelopers.blogspot.com/2011/11/understanding-how-maps-api-usage-limits.html
You cannot detect via the API that the request limit has been reached. There are no events that are fired and the API does not expose a function or property to determine that the API quota has been reached.
Google has decided that this is not a feature they will implement.
https://issuetracker.google.com/issues/35830575#comment12
#kilogauss I would disagree that falling back to static Google Map is not an option.
According to https://developers.google.com/maps/faq#usagelimits
"Web sites and applications using the Google Maps API may at no cost generate up to 25,000 map loads per day FOR EACH service" (capitalization and boldface mine).
And on https://developers.google.com/maps/faq#usage_pricing, you can see that JS Maps API v3 and Static Maps API are separate services.