Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Google Maps API server rejected your request

I m working on an application which renders google maps on an image as below

<img alt="Google Maps (Scotland)" src="http://maps.google.com/staticmap?size=480x200&amp;maptype=mobile\&amp;markers=55.9368450758,-3.03604939504,reda|55.9454374538,-3.18124534297,redb&amp;key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"> 

The map is not getting rendered and when I right click on the source of image and click the url, I get the following message

"The Google Maps API server rejected your request. This site or IP is not authorized to use this API key."

I have checked the API Access on https://code.google.com/apis/console the API key seems to be all correct. Just wondering how to fix the site and IP bit?

See below the settings in google API console

enter image description here

like image 237
rumi Avatar asked Oct 16 '13 15:10

rumi


People also ask

What is the daily limit for Google Maps API?

While there is no maximum number of requests per day, the following usage limits are in place for the Maps JavaScript API: 30,000 requests per minute. 300 requests per minute per IP address. In the Google Cloud Console, this quota is referred to as Map loads per minute per user.

Is Google Maps API no longer free?

You won't be charged until your usage exceeds $200 in a month. Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API or SDKs is not applied against your $200 monthly credit).


2 Answers

Make sure you have enabled "Static Maps API" service in addition to "Google Maps API".

like image 122
Simon Perepelitsa Avatar answered Sep 28 '22 19:09

Simon Perepelitsa


Make sure you have enabled the Google Maps related Services ("Google Maps Embed API" and "Static Maps API") like bellow:

enter image description here

And then mark them:

enter image description here

In the new layout you find it here:

enter image description here

like image 21
iambr Avatar answered Sep 28 '22 20:09

iambr