CodeIgniter Forums
google map api key issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: google map api key issue (/showthread.php?tid=30427)



google map api key issue - El Forum - 05-14-2010

[eluser]alberta[/eluser]
hi,

i have generated api key for my site http://www.example.net, it works on local
but when i try to run same code on live site it gives me error "this
website needs a different google map api key a new key can be
generated at.. "

Kindly help me to solve this issue i am stuck at this problem for few
days, i tried to regenrate but no luck.

Any help would be appreciated.
thanks


google map api key issue - El Forum - 05-14-2010

[eluser]Aken[/eluser]
You should be contacting Google for a problem like this, doesn't sound like a Code Igniter issue at all.

That said, is there some setting in the Google API that specifies what website the key is for? Does it match your site, or local environment?


google map api key issue - El Forum - 05-14-2010

[eluser]pickupman[/eluser]
Google API keys work similar to how SSL certs do. They are issued based on the hostname, so www.example.com != example.com. And similar that dev.example.com != www.example.com. However all subfolder below the domain will work. So API key for www.example.com will work for www.example.com/map/

API keys are fast and free, so just regenerate a key for the domain you are using, and try it out.


google map api key issue - El Forum - 05-15-2010

[eluser]alberta[/eluser]
thanks guys for your reply.

yeah i have generated key for http://www.example.net and now even if i try to regenerate key it gives me
same API key. And i use same key but it keeps on giving me thie error Sad
i posted this issue on googlemapapi groups but no luck yet.

Regards


google map api key issue - El Forum - 05-15-2010

[eluser]pickupman[/eluser]
[quote author="alberta" date="1273931568"]thanks guys for your reply.

yeah i have generated key for http://www.example.net and now even if i try to regenerate key it gives me
same API key. And i use same key but it keeps on giving me thie error Sad
i posted this issue on googlemapapi groups but no luck yet.

Regards[/quote]

Got a link you could post?