No GPS with HTML5 geolocation?

jimutt

New member
Apr 11, 2014
1
0
0
Visit site
I recently tried using the geolocation function together with a leaflet map in the standard IE browser on my Lumia 520. Though it told me that the phone was way off my actual location. So I believe that the phone is not enabling the gps for HTML5 geolocation functions. I also tried running this script:
Code:
/* 
var gl;
 
function displayPosition(position) {
  var p = document.getElementById("print");
  p.innerHTML = "<table border='1'><tr><th>Timestamp</th><td>" + position.timestamp +
  "<tr><th>Latitude (WGS84)</th><td>" + position.coords.latitude + " deg</td></tr>" +
  "<tr><th>Longitude (WGS84)</th><td>" + position.coords.longitude + " deg</td></tr></table>";
}
 
function displayError(positionError) {
  alert("Error");
}
 
gl = navigator.geolocation;
 
if (gl) {
  gl.getCurrentPosition(displayPosition, displayError);
} else {
  alert("Geolocation services are not supported by your web browser.");
}

To get the GPS coordinates. And they really wasn't correct.

Anyone know anything about this?
 
Last edited:

Guytronic

Ambassador Team Leader
Nov 4, 2013
8,431
0
0
Visit site
Probably wrong here.
If I remember correctly there was an offset built into location services using GPS.
Even the latest browser language may be suffering from this.
I think to accurately locate the phone needs data and GPS to update correctly.

I know my home point is incorrect at my house using GPS by itself.
 

Members online

No members online now.

Forum statistics

Threads
323,814
Messages
2,244,454
Members
428,132
Latest member
whcrumb