Hello all:
I've been fooling with AppEngine and the Google Maps APIs, and I'm
running into a bit of a snag. The Google Maps APIs require a 'key'
url parameter. The key parameter is hashed to your domain name, so if
I've got a <img> tag from localhost, the key differs than from when
I'm running on the Google servers.
I'd like to programmatically switch the key depending on whether I'm
running in the development server on my localhost, or on Google's
infrastructure. Does anyone know an API that I can call that will
tell me if I'm running in debug mode or not? Specifically, I'm
looking for (in python):
_LOCALHOST_KEY= 'ABQIAAAAnfs7bKE82qgb3Zc2YyS-
oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA'
_MY_DOMAIN_KEY = 'xyzpdq'
def GoogleMapsKey():
if IsRunningLocalHost(): # What's this API?
return _LOCALHOST_KEY
return _MY_DOMAIN_KEY
Thanks in advance.
Regards,
Jeremy Faller
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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-appengine?hl=en.