Preorders are now LIVEfor all of the new Surface devicesfor Fall 2021

  1. jimutt's Avatar
    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:
    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) {

    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 by jimutt; 04-11-2014 at 12:31 PM.
    04-11-2014 12:19 PM
  2. Guytronic's Avatar
    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.
    04-11-2014 11:50 PM

Similar Threads

  1. Project Ara with Nokia modules
    By taymur in forum The "Off Topic" Lounge
    Replies: 2
    Last Post: 04-12-2014, 03:09 PM
  2. windows has no app gift cards.
    By Brandon Boucher in forum Windows Phones
    Replies: 2
    Last Post: 04-11-2014, 12:31 PM
  3. 4th & Mayor gets updated with support for HD displays and more
    By in forum Windows Central News Discussion & Contests
    Replies: 0
    Last Post: 04-11-2014, 07:00 AM
  4. does WP just have trouble with certain videos on websites?
    By RavenSword in forum Microsoft News & Rumors
    Replies: 4
    Last Post: 04-11-2014, 05:13 AM
  5. gl??k! for Windows updated with OneNote support and more
    By in forum Windows Central News Discussion & Contests
    Replies: 1
    Last Post: 04-11-2014, 03:29 AM