Fixed
Status Update
Comments
en...@google.com <en...@google.com> #2
Would you be able to describe your use case of why you need to do on the order of hundreds of directions requests please?
[Deleted User] <[Deleted User]> #3
Sure. This is my application: http://lstsim.de/
It is in German, so here's a short description: It's a simulation of an emergency services dispatch center. The user is in charge of sending ambulances to different places all over the area. I'm using the Directions Service, so the ambulances on the map use the actual roads (and even respect the speed limits). Every trip from one location to another takes a single request. This allows me to achieve a pretty realistic replication of the reality.
This also means I don't actually need a routing request every second, but it rather depends on how busy things are in the game. My users were reporting routing errors usually after 300 routings and about an hour or so of playing, so you get an idea of the average request rate.
It is in German, so here's a short description: It's a simulation of an emergency services dispatch center. The user is in charge of sending ambulances to different places all over the area. I'm using the Directions Service, so the ambulances on the map use the actual roads (and even respect the speed limits). Every trip from one location to another takes a single request. This allows me to achieve a pretty realistic replication of the reality.
This also means I don't actually need a routing request every second, but it rather depends on how busy things are in the game. My users were reporting routing errors usually after 300 routings and about an hour or so of playing, so you get an idea of the average request rate.
ph...@gmail.com <ph...@gmail.com> #4
This problem sounds similar to behavior I am seeing with versions 3.10+ ... my application allows users to create maps of their addresses. After 200 or so rows the geocoder becomes very very slow, even if I delay geocodes 5-10 seconds in-between.
Since the limit is 2500 per day, does it not seem reasonable that you would be able to send a geocode 1 per second as you have in the past until you reach 2500? If this is a change to the quota and limits of the free google maps API please let us know.
Since the limit is 2500 per day, does it not seem reasonable that you would be able to send a geocode 1 per second as you have in the past until you reach 2500? If this is a change to the quota and limits of the free google maps API please let us know.
ph...@gmail.com <ph...@gmail.com> #5
Google is forcing 3.10 now so there is no using 3.9 to get around this bug.
I need to know if this is a permanent change on geocoding quotas or if this is truly a bug. If it is a permanent change I will need to make big changes to our app so users can only create maps of 200 or less points, whereas before it was possible to create 2500 marker maps.
I need to know if this is a permanent change on geocoding quotas or if this is truly a bug. If it is a permanent change I will need to make big changes to our app so users can only create maps of 200 or less points, whereas before it was possible to create 2500 marker maps.
sp...@gmail.com <sp...@gmail.com> #6
Any update on this? Is it a bug or a change?
lu...@google.com <lu...@google.com>
co...@maptive.com <co...@maptive.com> #8
An update on this would be greatly appreciated by our users. Thank you.
ra...@gmail.com <ra...@gmail.com> #9
Any updates on this issue? When will this bug be fixed.
ju...@gmail.com <ju...@gmail.com> #10
Any updates about this defect?
ju...@gmail.com <ju...@gmail.com> #12
So, it's about one year after my last question about the actual status of this defect. Are there any updates?
ju...@gmail.com <ju...@gmail.com> #13
So, it's about one year after my last question about the actual status of this defect. Are there any updates?
jo...@gmail.com <jo...@gmail.com> #14
The problem is more widespread than just the DirectionService, as I have the same experience with the Geocoder service. If I attempt much more than 250 calls to the service it becomes impossibly slow, no matter how far out I stagger the calls.
zw...@google.com <zw...@google.com> #15
Getting the information with webservice is a good alternative to do this via the API, as unlike the API, the developer is pretty much in control of the qps, and can acquire/purchase more qps if needed.
Webservice also has a free set, which you can use if you have high qps, but but low page loads. For a high qps and high page load application, unfortunately that can not be offered free of charge.
Webservices are accounted for by developer rather than by page load, and offers more flexibility in terms of QPS, but that also means that the entire quota bucket can be used within one application, however we assume the developer to be in control to hand this out as they please.
See:
https://developers.google.com/maps/web-services/overview
Webservice also has a free set, which you can use if you have high qps, but but low page loads. For a high qps and high page load application, unfortunately that can not be offered free of charge.
Webservices are accounted for by developer rather than by page load, and offers more flexibility in terms of QPS, but that also means that the entire quota bucket can be used within one application, however we assume the developer to be in control to hand this out as they please.
See:
ch...@gmail.com <ch...@gmail.com> #16
[Comment deleted]
ch...@gmail.com <ch...@gmail.com> #17
I feel the actual problem is lack of transparency on the limits being imposed, particularly for the Javascript API. For the Directions API, it is well written in the documentation that 2,500 free directions requests are allowed per day, at a rate of 10 requests per second. The Javascript API documentation, on the contrary, does not mention the limits on individual service. The only limit I can see from the documentation is "Free until exceeding 25,000 map loads per 24 hours for 90 consecutive days".
As a consequence, developers either assume the limits of the JavaScript API Directions Service is the same as that of the Directions API, or they do a stress test on the API themselves to guess how much requests Google will allow. For developers doing the latter, they apparently observed a change in behavior compare to the previous version, and for over 3 years there is no confirmation officially given.
Your suggestion in using the Directions API may or may not resolve our problem eventually, but it is certain that the lack of transparency now causes extra development and testing effort for each developer experiencing this problem.
In addition, it is clearly written in your documentation the following:
> This service is generally designed for calculating directions for static (known in advance) addresses for placement of application content on a map; this service is not designed to respond in real time to user input, for example. For dynamic directions calculations (for example, within a user interface element), consult the documentation for the Google Maps JavaScript API Directions Service.
As you have seen in this thread, at least a few developers are doing exactly what is described. They have a user interface for users to add multiple places (could be over hundred), and then the routes for each pair of places are computed. I don't see a reason why we have to switch over to the Directions API then - given that the JavaScript API is designed to entertain client side user interaction.
At the very least, could you please disclose the limits in the documentation, such that developers can take into consideration when designing their application?
As a consequence, developers either assume the limits of the JavaScript API Directions Service is the same as that of the Directions API, or they do a stress test on the API themselves to guess how much requests Google will allow. For developers doing the latter, they apparently observed a change in behavior compare to the previous version, and for over 3 years there is no confirmation officially given.
Your suggestion in using the Directions API may or may not resolve our problem eventually, but it is certain that the lack of transparency now causes extra development and testing effort for each developer experiencing this problem.
In addition, it is clearly written in your documentation the following:
> This service is generally designed for calculating directions for static (known in advance) addresses for placement of application content on a map; this service is not designed to respond in real time to user input, for example. For dynamic directions calculations (for example, within a user interface element), consult the documentation for the Google Maps JavaScript API Directions Service.
As you have seen in this thread, at least a few developers are doing exactly what is described. They have a user interface for users to add multiple places (could be over hundred), and then the routes for each pair of places are computed. I don't see a reason why we have to switch over to the Directions API then - given that the JavaScript API is designed to entertain client side user interaction.
At the very least, could you please disclose the limits in the documentation, such that developers can take into consideration when designing their application?
en...@google.com <en...@google.com>
ml...@gmail.com <ml...@gmail.com> #18
Hii.
I have one question for you about google map api.
I am getting this message:
"You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account:http://g.co/dev/maps-no-account "
I got this error yesterday at 13PM. At 00:00 it should be restarted but I can not access to this service yet? Have anyone known what can be a problem or when will access be enabled?
Thanks a lot. Mladen
I have one question for you about google map api.
I am getting this message:
"You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account:
I got this error yesterday at 13PM. At 00:00 it should be restarted but I can not access to this service yet? Have anyone known what can be a problem or when will access be enabled?
Thanks a lot. Mladen
ka...@google.com <ka...@google.com> #19
Hi Mladen,
re#18 This error is not related to the same issue
It looks like you are having issues because you did not set up a billing account. Please follow instructions fromhttp://g.co/dev/maps-no-account "
If this does not work please create a support case viahttps://console.cloud.google.com/google/maps-apis/support in order to open personalized communication channel. Public issue tracker is not supposed to be used for issues like this one. It is aimed to report API bugs and feature requests.
re#18 This error is not related to the same issue
It looks like you are having issues because you did not set up a billing account. Please follow instructions from
If this does not work please create a support case via
ka...@google.com <ka...@google.com> #20
An update from our Engineering team is that Maps APIs is working as expected with the quota rate limiting functionality, but they are ok to consider this as a FR for the product.
I will update it to FR for our PM team to look at.
I will update it to FR for our PM team to look at.
st...@google.com <st...@google.com>
bm...@gmail.com <bm...@gmail.com> #21
+1 any updates on this FR?
When I call the Places API from my web server I can use it very fast, but when I call it from the JavaScript API I can only call it 10 times a second. This forces me to either write more server-side code (boo) or write a javascript rate limiting function.
When I call the Places API from my web server I can use it very fast, but when I call it from the JavaScript API I can only call it 10 times a second. This forces me to either write more server-side code (boo) or write a javascript rate limiting function.
ra...@google.com <ra...@google.com>
nu...@gmail.com <nu...@gmail.com> #22
I want set unlimit quota Maps JavaScript API. What should I do to set unlimit.
jh...@google.com <jh...@google.com> #23
Thank you all for your messages. This is being fixed and will be live in early 2023.
jo...@gmail.com <jo...@gmail.com> #24
Better late than never I suppose.
Description
///////////////////////////////
console.log(google.maps.version);
var counter = 0;
var service = new google.maps.DirectionsService();
var interval = setInterval(do_request, 1000);
function do_request() {
service.route({
origin: new google.maps.LatLng(48 + Math.random(), 9 + Math.random()),
destination: new google.maps.LatLng(48 + Math.random(), 9 + Math.random()),
travelMode: google.maps.DirectionsTravelMode.DRIVING
}, show_result);
}
function show_result() {
console.log(arguments, ++counter);
}
///////////////////////////////
For your convenience, here is a very simple map on jsFiddle where you can reproduce the problem by adjusting the API version parameter, entering the above code in the JavaScript box and hitting "Run" at the top:
Don't forget to open the Developer Tools.
Versions 3.8 and 3.9 will happily print "[Object, "OK"] xxx" for many hundred lines.
Versions 3.10 and 3.11 will start printing OVER_QUERY_LIMIT errors sometime after line 150 and before line 200. Also, the frequency of the error goes up with continuing API calls up to a point where the API becomes almost unusable. Here's a screenshot:
While I think