Radu Negrila
Radu Negrila

Reputation: 667

Google Static Maps don't work with Google APIs Console generated key

I am using the Google Static Maps API.

Since Google introduced the following restriction for maps usage I added an key parameter to my image urls. The key was generated here: https://code.google.com/apis/console

After I added the key parameter the map image requests fail with a 403 status code and the following message: This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/.

If I remove the key the requests return a 200-OK status code.

The reports in the Google APIs Console are showing ~100K requests so far, even though the clients don't see any Maps images.

What am I missing?

Upvotes: 1

Views: 1913

Answers (2)

nilsjesper
nilsjesper

Reputation: 132

I ran into the same problem and realized that I had turned on the Maps v3 service (assuming that covered static maps) but NOT the static maps service which appears further down the alphabetized list.

Hope that helps.

Upvotes: 5

Dr.Molle
Dr.Molle

Reputation: 117354

Static Maps don't require a key anymore, they are also not available inside the console. So I guess you created a key for a maps-javascript-API and use this key for a static map, what will result in the error.

There is no need for a key anymore in static maps, because the limits now are bound to the user and not to the provider.

Upvotes: 0

Related Questions