niklasr
unread,Jul 10, 2008, 2:42:52 AM7/10/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine, Alex Hultmark, Km, Otto Dandenell, Shankar Gopinath, Göran E Larsson, Kyriakos, ulf.wen...@swedenisland.se, c.a...@tritelum.com, Jörgen Bang, sta...@tomtebo.org, Peder Linder
http://classifiedsmarket.appspot.com i e
www.koolbusiness.com
geocodes
<br>Country Code:
<script language="JavaScript">document.write(geoip_country_code());</
script>
<br>Country Name:
<script language="JavaScript">document.write(geoip_country_name());</
script>
<br>City:
<script language="JavaScript">document.write(geoip_city());</script>
<br>Region:
<script language="JavaScript">document.write(geoip_region());</script>
<br>Latitude:
<script language="JavaScript">document.write(geoip_latitude());</
script>
<br>Longitude:
<script language="JavaScript">document.write(geoip_longitude());</
script>
and reverse geocodes:
var reversegeocoder = new GReverseGeocoder(map);
GEvent.addListener(reversegeocoder, "load",
function(placemark) {
document.getElementById("message").innerHTML = placemark.address
}
);
The map should zoom to your location. We store geo coordinate for each
announcement and the map zooms the this location.The code is available
as a 1 mb zip file from my home page
http://niklasro.googlepages.com
We'd rather do this serverside believing this would improve response
time.But the GeoIP C library is probably not available with the GAE,
so our lookups are with javascript.
Regards,
Niklas