I want to use google maps api for an assignment in my studies.
when entering the official google maps on chrome it seems like there's a destinations number limitation to 10 - so you can't create a route of more then 10 destinations.
Will that same limitation also be if i'll use the google maps API in my own project that I'm creating and not through the official website?
Use a key.
Without a key, the limit is 8 waypoints. With a (free) key, the limit is 23 waypoints (plus origin and destination).
From the documentation (note that keys are now required, some sites are grandfathered with keyless access):
Limits and Restrictions for Waypoints
The following usage limits and restrictions apply:
The maximum number of waypoints allowed when using the Directions service in the Google Maps JavaScript API is 23, plus the origin and destination. The limits are the same for the Google Maps Directions API web service.
For the Google Maps Directions API web service, customers are allowed 23 waypoints, plus the origin, and destination.
Google Maps APIs Premium Plan customers are allowed 23 waypoints, plus the origin, and destination.
Related
I am looking at the Google Web Services pricing on:
https://developers.google.com/maps/pricing-and-plans/
If I look at:
Google Maps Directions API
Google Maps Geocoding API
They say on the web page Free up to 2,500 requests per day.
This would be free if I use both or is it for an aggregate total of all these one listed.
Google Maps Directions API = 2000
Google Maps Geocoding API = 500
So if I did another query on either then I would be charged. Or can I go to 2500 on each of the items before I am charged?
Google Maps Directions API
Google Maps Distance Matrix API 4
Google Maps Elevation API
Google Maps Geocoding API
Google Maps Geolocation API
Google Maps Roads API
Google Maps Time Zone API
Thanks,
Ward.
Each web service has its own usage quota. You can execute up to 2.5K daily requests free of charge for each one.
For further details please refer to the documentation:
https://developers.google.com/maps/documentation/geocoding/usage-limits
https://developers.google.com/maps/documentation/directions/usage-limits
https://developers.google.com/maps/documentation/distance-matrix/usage-limits
https://developers.google.com/maps/documentation/elevation/usage-limits
Also, note that distance matrix usage is measured in number of elements and not in number of requests. The number of elements is a number of origins times a number of destinations in your request. So, sending for example 5 origins and 5 destinations (25 elements) in each distance matrix request you will be able to execute only 100 daily requests free of charge.
What is the limit of allowed waypoints in the free plan of Google Maps Directions API? Their site indicates this:
Up to 23 waypoints allowed in each request containing an API key, or up to 8 waypoints when no API key is supplied, or up to 8 waypoints when using the Directions service in the Google Maps JavaScript API
Which is unclear, because first it tells you that you're allowed to use 23 waypoints when you have a key, and lastly it says that you're only allowed to use 8.
See this issue in the issue tracker: Issue 8886: Bug: Directions API description of MAX_WAYPOINTS_EXCEEDED is not clear
from that issue:
Nov 16, 2015
Project Member #8 andr...#google.com
The post refers to Web Services.
The situation is the following:
Web Services (Directions API, Distance Matrix API) both free users (API keys) and Maps for Work users (client ID + signature) have 23 waypoints
JavaScript API (directions service, distance matrix service): free users (API keys) have 8 waypoints, Maps for Work users (client ID) have 23 waypoints.
Jan 22, 2016
Project Member #12 ekelar...#google.com
we're looking into adding this to JavaScript API as well, but there are some blockers on this, so we decided to roll it out for the web services without waiting for JS.
Is there a way to navigate with the Google Maps API?
I know I can use Intent to open the Google Maps app itself, but I'm looking for this solution specifically.
You can add direction/navigation to your Google Maps app by adding Google Directions API. This API calculates directions between locations using an HTTP request.
The quota is following:
2500 directions requests per 24 hour period.
Up to 8 waypoints allowed in each request. Waypoints are not available for transit directions.
2 requests per second.
ANything more will cost money.
I'm working on a project that uses Google Maps APIs to reverse geocoding locations.
The customer is supposed to buy a licensed API key when rolling out to production.
Now I'm developing the application and I also need to test its functionality when using a valid, whether free or business, API key.
Let's pick a sample reverse geolocation request
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
I have registered a developer account into https://code.google.com/apis/console/ and generated a server API key. Then I enabled Google Geolocation APIs and Google Maps API v3 (I think I need only the second).
When adding &key=XXX parameter to my previous request I get an error that the key is not valid.
Reading documentation with more attention, I discovered that the geolocation service I'm using is actually part of Maps Web Service APIs (Maps V3 APIs run on browser as Javascript). I tried to find those APIs into the Services list of my console but couldn't find anything more.
How do I use Google's reverse geocoding API with a business key for a project that will handle thousands of daily requests?
with no api key, the Google Geocoding API has the following limits in place: 2,500 requests per day.
Google Maps API for Business customers have higher limits: 100,000 requests per day.
to use to API for Business you have to use URL signing, see https://developers.google.com/maps/documentation/business/webservices/auth
NB: If you're switching from the free API services to a Maps API for Business implementation, you must remove the key parameter from your requests. Google Maps API web services will deny requests made with both a client ID and a key.
I'm using google maps to geocode. But I have 280k address to geocode, I would like to know a better option for this.
Thank you.
I looked for Bing and Yahoo! tutorial to make the geocoder, but nothing was found, only plotting tutorials.
Bing Maps has a couple of different options for geocoding data. There is a lot of information out there on this as well.
The batch geocoder in Bing Maps allows licensed customers to geocode up to 25 files of 200,000 addresses a day. Unlicensed customers are limited to 50 addresses per file. Documentation:
http://msdn.microsoft.com/en-us/library/gg585136.aspx
http://msdn.microsoft.com/en-us/library/ff701733.aspx
Bing Maps also has an on-demand REST geocoding service which can geocode one address at a time. Here is some documentation:
http://msdn.microsoft.com/en-us/library/ff701715.aspx
http://msdn.microsoft.com/en-us/library/jj819168.aspx
http://msdn.microsoft.com/en-us/library/jj870778.aspx
http://blogs.bing.com/maps/2013/02/14/bing-maps-rest-service-tips-tricks/
All this said, it should be noted that there are restrictions around geocodes with most mapping platforms. Generally they can not be used with competing mapping platforms. i.e. Data geocoded by Bing Maps cannot not be used in a Google Maps application.