Generating Keys for Google Maps API Using the APIs Console

March 19, 2012 in Google maps

I’m writing this post because I was asked many times how to generate keys for the web sites that are still using Google Maps APIs version 2 (or using GMaps4JSF that is still using Google Maps APIs version 2). Many users were confused because Google removed the key generation mechanism from the Google signup page and some of the users thought that it is no longer supported to generate keys for Google Maps version 2 applications. Fortunately, generating new keys for GMaps v2 applications is still supported.

Here are the steps that I follow for generating new key for my Google Maps API version 2:

  • Login to the APIs console at https://code.google.com/apis/console with your Google Account.
  • Activate the Google Maps v2 service by clicking the “Services” link of the left menu and then enabling the service as shown in the figure below:

    Figure1

  • Click on the “API Access” link of the left menu, then click on the “Create new browser key …” button, the following dialog will appear to you:

    Figure2

  • Enter the URL of your web site, and then click on the “Create” button, you will find your GMaps v2 key attached in the API access page as shown in the figure below:

    Figure3

Finally you can use this key for your GMaps v2 script include as follows:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABCDEFGHIJK&sensor=false"
            type="text/javascript"></script>

This is all about; I wish that this tip can be useful for you.

References:
https://developers.google.com/maps/documentation/javascript/v2/introduction#Obtaining_Key.

8 comments on “Generating Keys for Google Maps API Using the APIs Console

  1. Lindermann on said:

    Is not more necessary a key in the new version (v3).

  2. victor on said:

    It was useful! Nice

  3. My partner and I stumbled over here from a different web page
    and thought I might as well check things out. I
    like what I see so now i am following you. Look
    forward to looking into your web page repeatedly.

  4. Philip on said:

    Hi,
    I need to generate a key for Flash Map API, and followd the above steps, but the map key is not working, does it work for flash Map API? Or do I need to take few other steps to make it work?

    Thanks

    Philip

  5. Very good blog post. I certainly appreciate this website.
    Keep writing!

  6. Kelly Jones on said:

    Fantastic post. Here’s a tool that helps create Map Mashup providing a step-by-step wizard that generates ready-to-deploy code on any website or blog http://blog.caspio.com/integration/announcing-the-new-and-improved-map-mashup-version-7/

  7. Nice and helpful article.

Leave a reply

Your email address will not be published. Required fields are marked *

332,464 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by sweet Captcha