Google Directions Service does not count requests made with my api key

2

I'm using the same javascript reference to use the directions service when maps api:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=MINHA_CHAVE"></script>

Therequestsmadetothemapsapiarebeingcountednormally.EachtimeIopenascreenthatloadsthemaps,thecounteringoogledeveloperconsoleisincrementedinstantly:

The problem is that the requests made to api directions (directionsService.route ()) are working normally but are not counted.

I imagine this might cause problems in the future if I exceed the limit and do not pay ... maybe the server will be blocked.

Obs. I have not yet activated billing.

    
asked by anonymous 10.02.2016 / 19:37

1 answer

1

Okay, I've figured out why route () calls do not count. This DirectionsService that I'm using is the version built into the Javascript Maps API, so it's only subject to the limitation of this service that is 25,000 map loads per day, ie open a google map 25000 times, regardless of zoom, navigate the map , etc ... only load the map.

Otherwise, the only limitation of the DirectionsServices within api javascript is for calls per second. The first ten calls can be within one second, however, the subsequent calls should wait a longer period between one call and another and if you try to make the request at a very short interval you will receive the error status 'OVER_QUERY_LIMIT'. The biggest delay you need comes in one second for my tests.

For number of calls per day or per month, there is no limit on the use of DirectionsService.route (), so it is not counted in the google developer console quota manager.

    
11.02.2016 / 18:33