This project is read-only.

Getting Around the Google API Key Issue on Localhost

Feb 13, 2008 at 6:50 PM
I have a way to get around the problem of using Localhost with the Google Maps API. As you know, localhost presents its own problems for the API. However, I fake a URL in my development in order to troubleshoot all kinds of things - not just the API. Here is how I do it:
Feb 13, 2008 at 8:59 PM
Cool tip - real tricky one.
Thanks a lot.
Feb 14, 2008 at 1:30 AM

velio wrote:
Cool tip - real tricky one.
Thanks a lot.

Yeah, this allows me to register a key for any domain and it works on localhost.
Mar 9, 2010 at 5:38 PM

Do we have an updated URL to this tip that works, so I can get the details... When I go to the site and enter 'google' in the search box I get the following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Tue, 9 Mar 2010 17:35:01 UTC

Message: 'google' is undefined
Line: 39
Char: 5
Code: 0


Mar 9, 2010 at 10:54 PM

My URL schema has changed (a loooooong time ago).  Here is the new URL