The alert() show the danish version of the domain (as i would expect), because that's what i type in the address bar to get there :)
If i enter the puny-code www.xn--humlebkauto-f9a.dk it will get translated to the danish equivalent, and fail again. When i registered for the API key i entered the danish domain, and i got a key back for the puny-code. I guess the question is: How do i get an API key for humlebækauto.dk ? The good: http://www.humlebaekauto.dk/location/ The bad: http://www.humlebækauto.dk/location/ The ugly: http://www.xn--humlebkauto-f9a.dk/location/ On Jul 31, 8:48 pm, Edge <[email protected]> wrote: > This is interesting, try placing this javascript somewhere in your > code (if you haven't)... > alert(window.location.host) > > Also try reading this to see if it will > help...http://code.google.com/apis/maps/faq.html > > Here is someone else with the same > issue...http://groups.google.com.ai/group/Google-Maps-API/browse_thread/threa... > > -Edgar > > On Jul 30, 4:03 pm,trasherdk<[email protected]> wrote: > > > Hi guys > > > I'm having problem with a key registered to a domain containing > > national characters ( æ ). > > > I have 2 URL's pointing (aliased) to one server. The first, with no > > national characters is working, but the second with danish character > > does not. > > > Both IE 8 and FF 3.5 show same behavior. > > > I have registered a key for each, and they use the right key, when > > loading the API. > > > The good:http://www.humlebaekauto.dk/location/ > > > The bad:http://www.humlebækauto.dk/location/ > > > "The bad" translates to "The ugly" (or the other way around) > > > The ugly:http://www.xn--humlebkauto-f9a.dk/location/ > > > On the URL's that fail, i get an empty warning dialog. Just an > > exclamation > > and OK button. No text at all. > > > I'm clueless as to what is wrong, any hints will be most appreciated. > > > Here's the piece of code that manage the keys: > > > <CODE> > > <?php > > $mapkeys = array( > > "humlebækauto" =>"ABQIAAAA2FBIISs1...9sBFgEuw", > > "xn--humlebkauto-f9a" => "ABQIAAAA2FBIISs1...9sBFgEuw", > > "humlebaekauto"=>"ABQIAAAA2FBIISs1...CtjY6YNA" > > ); > > > list($keyhost, $keydomain, $keytld) = > > split("\.",$_SERVER['SERVER_NAME'],3); > > $mapkey = $mapkeys[$keydomain]; > > ?> > > <script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=<?= > > $mapkey ?>" type="text/javascript"></script> > > </CODE> > > > Regards > > > Mogens --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
