Google Maps API Maps Error: 403 (Forbidden for too many page views)

I have a published layer in the Google Maps Engine that I am trying to display using the Google Maps V3 API. At GME, my user is on the Shared Access List, and the API Access is also on the user list.

I am making the Maps V3 API using the MapsEngineLayer from the visualization library and setting the corresponding authentication resource identifier and layer resource identifier as part of layerOptions.

In the API call with the error message: Google Maps API API Error: 403 (Forbidden access for too many page views)

The url is as follows:

https://earthbuilder.googleapis.com/my_gme_layer_asset_id-4/maproot/json ? Exit = JSONP & access_token = my_auth_token & callback = xdc._tsel5i

I found some discussion topics related to "403" and "forbidden," but it's hard for me to understand the meaning (and solution) of the "too many page views" problem.

Any suggestions would be appreciated.

+4
source share
2 answers

How many requests you made today, are there any restrictions on the use of the Maps API, which may prevent you from requesting any additional data.

https://developers.google.com/maps/faq#usagelimits

Although it seems unlikely that you hit your hard 25,000 requests, you can make sure that you are not accidentally using DOSing with HTTP requests. Such things will constantly burn your limit and potentially blacklist your IP address.

Also, you should check the Maps API reference materials, I think you can use the deprecated API.

https://developers.google.com/maps/documentation/webservices

Your http request should look something like this:

 http://maps.googleapis.com/maps/api/service/output?parameters 

Where output is either json or xml .

edit: The Maps API help page is here .

+2
source

If you tried with @David's solution and it does not work. It is worth checking that you are not caching (or saving locally) the Google maps js script. Google does not allow this. If you serve this file, it will work for about 3 days, and then stop working.

+7
source

Source: https://habr.com/ru/post/1488127/


All Articles