GPS coordinates (Verizon: VZ navigator activated)
Please Login to Remove!
Hey Folks
Here's the deal.
I have a corporate BB which is connected to BES server.
I've put a sample web page together when, via Blackberry, you visit the website it displays Latitude and Longitude.
The carrier is Verizon and yes, VZ navigator is activated.
for lat. and long. I'm getting zeros (and yes I did sit outside for some time under the clear sky)
Currently I'm performing tests using this code:
*****************************
<code>
<script type="text/javascript">
var modeCellsite = 0;
var modeAssisted = 1;
var modeAutonomous = 2;
function locationChanged() {
alert("Lat " + blackberry.location.latitude +
" Lon " + blackberry.location.longitude +
" Time " + blackberry.location.timestamp);
return true;
}
if (window.blackberry && blackberry.location.GPSSupported) {
var isUpdated = false;
var theCount = 0;
alert("Location tracking is supported");
blackberry.location.onLocationUpdate("locationChan ged()");
blackberry.location.setAidMode(modeAutonomous);
while (theCount++ < 10 && !isUpdated)
isUpdated = blackberry.location.refreshLocation();
}
else {
document.write("Location tracking is not supported");
}
</script>
</code>
*******************************
any ideas will be much appreciated
thanks a bunch in advance
|