title: HTML5 geolocation watchPosition getting called just once
body: <p>I am creating an android application using html 5 and  I want to access latlong from the user as the user moves. I have used watchPostion but it isgiving me user location just once.</p>
  
  <pre><code>    var watchID;
  var geoLoc;
  
  function showLocation(position) {
    var latitude = position.coords.latitude;
    var longitude = position.coords.longitude;
  
      var ll=new google.maps.LatLng(latitude, longitude);
      map.setCenter(ll);
  
    console.log("Latitude : " + latitude + " Longitude: " + longitude);
  }
  
  function errorHandler(err) {
    if(err.code == 1) {
      console.log("Error: Access is denied!");
    }else if( err.code == 2) {
      console.log("Error: Position is unavailable!");
    }
      }
      if(navigator.geolocation){
        // timeout at 60000 milliseconds (60 seconds)
        var options = {timeout:60000};
        geoLoc = navigator.geolocation;
        watchID = geoLoc.watchPosition(showLocation, 
                                       errorHandler,
                                       options);
  
  
     }else{
        console.log("Sorry, browser does not support geolocation!");
     }
  </code></pre>