Finding the Geo-location on a Blackberry?
Posted
by Frederico
on Stack Overflow
See other posts from Stack Overflow
or by Frederico
Published on 2010-06-03T15:58:04Z
Indexed on
2010/06/03
16:24 UTC
Read the original article
Hit count: 677
I'm running into an issue when trying to geolocate users whom are using blackberry devices. Currently there are a few checks that I go through to geolocate the individual the first, using the navigator paramater inside browsers.
if(navigator.geolocation)
if this fails then I have a backup using a free service (for testing) from maxmind: See Here
Yet this doesn't return back the city at all either.
I've then tried using the JSPI that google maps proviedes, and echoing out the google.loader.ClientLocation:
if (google.loader.ClientLocation != null) {
document.write("Your Location Is: " + google.loader.ClientLocation.address.city + ", " + google.loader.ClientLocation.address.region + " lat: " + google.loader.ClientLocation.latitude + " Long: " + google.loader.ClientLocation.longitude);
} else {
document.write("Your Location Was Not Detected By Google Loader");
}
When this didn't work I tried following the google maps 3.0 detect location seen here: Detecting Location
I've done all this after seeing this work correctly in google latitude.. so I know there has to be a way to get the location... any thoughts, ideas on what I could possibly try?
Thank you kindly
© Stack Overflow or respective owner