Welcome Guest, Not a member yet? Register   Sign In
google map api key issue
#1

[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
#2

[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?
#3

[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.
#4

[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
#5

[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?




Theme © iAndrew 2016 - Forum software by © MyBB