Thanks Ross, Its been a while since I did any coding and I hadn't noticed that 4 of the keys were commented out! - oops
I used the key I got when registering with both instances of the live part and it all works fine now. Cheers Andrew On Jun 17, 2:22 pm, Rossko <[email protected]> wrote: > As you say, keys are tied to domain names - so a change of server IP > does not force a key change. > > However, keys are also tied to the originator's Google account. If > that person was very naughty, all their keys might be disabled. > Therefore, it makes sense to not continue using keys connected to > other people even if they are functional on your domain, and instead > get keys under your own control. > > I guess I'm saying throw the lot away, get new keys for your live > domain and your dev site using your own account. You might also > choose to keep the 'localhost' feature and get a key for that, but > maybe you won't ever use it and can just discard it. > > So far as I know the same Google key works in any Google service > (maps, UDS, etc), so you only need one per domain. > > cheers, Ross K > > On Jun 17, 8:43 am, Andrew Crystal <[email protected]> > wrote: > > > Totally gmap api newbie warning! lol > > > We had a site developed last year that uses google maps but are going > > to move it away from the current developer. We have been warned that > > as part of this we may need to get a new gmap api key - I have read a > > little on this and I dont think we will as they are tied to a domain > > name and not to a server IP address but I would also like to setup a > > test site for any future developments that will have a different > > address like gbwildlifetestsite.co.uk or something like that. I have > > started getting things together and looked at the api keys last night > > and registered a new one - all good. > > > The problem came when I looked at the web.config file and found that > > there were 6 different ones in there - which one do I replace or have > > I registered a new one wrong and should I have used a different > > method?? > > > The site is currently > > athttp://www.gbwildlife.co.uk/Results.aspx?place=halifax&radius=50&lati... > > > And my current api keys in the web.config file are structured like > > this so I seem to have 5 different values listed..........????? > > > (I havent included the actual keys as I am not sure whether these > > should be publicly displayed or kept private?) > > > <!-- Local --> > > > <add key="googleSRC" value="http://maps.google.com/maps? > > file=api&v=2&key= Value1 > > <add key="googleSRC_UDS" value="http://www.google.com/uds/api? > > file=uds.js&v=1.0&key= Value2 > > > 2 different keys > > > <!-- Dev > > > <add key="googleSRC" value="http://maps.google.com/maps? > > file=api&v=2&key= Value3 > > <add key="googleSRC_UDS" value="http://www.google.com/uds/api? > > file=uds.js&v=1.0&key= Value3 > > > 2 Key thats are the same > > > --> > > > <!-- Live > > > <add key="googleSRC" value="http://maps.google.com/maps? > > file=api&v=2&key= Value4 > > <add key="googleSRC_UDS" value="http://www.google.com/uds/api? > > file=uds.js&v=1.0&key= Value5 > > > 2 different keys > > > --> > > > Any help on this would be greatly appreciated :-) > > > Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
