Accuracy Discrepancy between Google Maps and Google Geolocation API

[postlink] https://the-best-way-of-life-is-islam.blogspot.com/2015/07/accuracy-discrepancy-between-google.html [/postlink]

I found a lot of treatment of geolocation accuracy, but nothing that addresses the difference between the Google API and Maps. This is on Android Chrome.

Indeed, there's a large discrepancy between the two. The API gives me 30 meters at best, but Maps manages less than 10. What gives? Here are snippets from my code:

<script type="text/javascript"
 src="http://ift.tt/1btSrES">
</script>

Then later:

function getLoc() {
 navigator.geolocation.getCurrentPosition(showLoc, errorLoc,
  {maximumAge:15000, timeout:60000, enableHighAccuracy:true});
}

function showLoc(position) {
 var elt = document.getElementById("userloc");
 elt.innerHTML = "Lat " + position.coords.latitude + "&nbsp;&nbsp;" +
                 "Long " + position.coords.longitude + "&nbsp;&nbsp;" +
                 "Accuracy " + position.coords.accuracy;
}

function errorLoc(msg) {
 alert(msg);
}

اذا أعجبك الموضوع ساهم في نشره :

Enregistrer un commentaire

 
حقوق النشر: Published by | Template Created by | القناة على اليوتيب
copyright © 2014. The Best Way Of Life Is Islam -يمكن نقل كل ما هو موجود في موقع الرحمة تيوب
القرآن الكريم و الأحاديث النبوية أناشيد و دروس اسلامية منوعة موقع الفيديوهات الاسلامية
تطوير و تعريب مدونة ثعلوب