watchPosition () vs getCurrentPosition () con setTimeout

Necesito determinar la ubicación de una persona dentro de 50m. Me pregunto si debería usarnavigator.location.watchPostion() o llamargetCurrentPostion() una y otra vez.watchPostion() es la API adecuada de W3C para hacer lo que quiero, pero en la práctica, parece ser una exageración.

Aquí está mi código:

var map = null;
var marker = null;
var layer = null;

function locFn(pos) {

  var lat = pos.coords.latitude;
  var lon = pos.coords.longitude;

  $("#hlat").val(lat);
  $("#hlong").val(lon);

  document.getElementById("lnkMap").href = 
    "http://maps.google.com/maps?q=My+Loc@" + lat
    + "," + lon + "&z=18&t=h";

  var point = new GLatLng(lat, lon);

  if (pos.coords.accuracy < 100) {
    map.setCenter(point, 18);

    if (marker != null) {
      marker.setLatLng(point);
    }
    else {
      var ico = new GIcon();
      ico.image = "img/Blue-Dot.png";
      ico.iconSize = new GSize(22, 22);
      ico.iconAnchor = new GPoint(11, 11);
      marker = new GMarker(point, { icon: ico });
      layer = map.addOverlay(marker, { title: "You are here." });
    }
  }
  else if (pos.coords.accuracy > 2000) {
    if (marker != null) { marker.setLatLng(point); }
    map.setCenter(point, 15);
  }
  else if (pos.coords.accuracy > 900) {
    if (marker != null) { marker.setLatLng(point); }
    map.setCenter(point, 16);
  }
  else if (pos.coords.accuracy > 100) {
    if (marker != null) { marker.setLatLng(point); }
    map.setCenter(point, 17);
  }
}

function locFail() {
  //alert("Failed to retrieve location.");
}

var watchID = null;

function processPoints() {
  map = new GMap2(document.getElementById("map_canvas"), 
                  { mapTypes: [G_HYBRID_MAP] });
  try {
    watchID = navigator.geolocation.watchPosition(locFn, locFail,
          { enableHighAccuracy: true });
  }
  catch(err) { /* desktop?*/ }
}
$(function(){processPoints();});

me he dado cuentawatchPostion() Parece que, en última instancia, resulta en una mayor precisión (después de un tiempo), pero me pregunto si la posición cambia tan rápido que hace que muchas cosas se descarguen en el lienzo de mi mapa, con constantes solicitudes de http que pronto estarán fuera de lugar. fecha, reemplazado por los nuevos que entran. Cuando usowatchPosition(), toma un tiempo antes de que se cargue la página.

Respuestas a la pregunta(2)

Su respuesta a la pregunta