Forum LAMS for Tech-Heads - General Forum: Google Maps API


 
You may request notification for Google Maps API.
Search: 

1: Google Maps API
09/04/12 11:17 PM
[ Reply | Forward ]
Hi guys I was wondering anyone could shed some light on the google maps API? We are using LAMS 2.3.5 and a pop up appears see image....
Can anyone offer some advice?
Cheers Robin

Posted by Robin Ohia

Attachments:
2: Re: Google Maps API
In response to 1 09/05/12 04:20 AM
[ Reply | Forward ]
Hi Robin,

Yes, you need to get a Google API Key, which is a long string of alphanumeric characters.

See the instructions here:

http://wiki.lamsfoundation.org/display/lamsdocs/lagmap10

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Google Maps API
In response to 2 09/05/12 11:42 AM
[ Reply | Forward ]
Muchas Gracias Ernie

Posted by Robin Ohia

4: Re: Re: Re: Google Maps API
In response to 3 09/07/12 02:20 PM
[ Reply | Forward ]
Kia ora Ernie - we installed a key and then a second message appeared....please see the attachment

Posted by Robin Ohia

5: Re: Re: Re: Re: Google Maps API
In response to 4 09/07/12 02:23 PM
[ Reply | Forward ]
attachment....

Posted by Robin Ohia

6: Re: Re: Re: Re: Re: Google Maps API
In response to 5 09/07/12 02:28 PM
[ Reply | Forward ]
problem with the attachment....it reads: Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key or it is not authorised for the Google Maps Javascript API v2 on this site

Any help much appreciated.

Cheers Rob

Posted by Robin Ohia

7: Re: Re: Re: Re: Google Maps API
In response to 4 09/11/12 02:54 PM
[ Reply | Forward ]
Kiora Robin,

Let me have a closer look at it now. It seems that Google now has changed the way they do their Maps API.

So I'll investigate further and get back to you.

Cheers,

Ernie

Posted by Ernie Ghiglione

8: Re: Re: Re: Re: Google Maps API
In response to 4 09/11/12 03:59 PM
[ Reply | Forward ]
Hi Robin,

It seems that the API v2 that we use has been deprecated:

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

Although it will work until May, 2013; I have created a task to change this for their API v3 instead.

Neverthless, you can still use V2. Here's what you do. Click Google's APIs Console at https://code.google.com/apis/console. You'll be asked to login with a gmail user.

You'll see then:



Then scroll click on Services and scroll down to "Google Maps API v2" and turn that "On":



Now go to API Access and click on "Create new Server Key"...






Complete enter the domain for your server (make sure you include the /lams/ at the end):



Click "Create" and then you'll have your key:



Copy/paste that into the Tool management for GMap tool in the Sysadmin menu... and voila!

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum