At the moment, I am using Phonegap's geolocation.getCurrentPosition() to show my lat/long

I would like to change it to: geolocation.watchPosition

like on here: http://docs.phonegap.com/en/1.8.1/co...cation.md.html


but my code is written slightly different and I'm confused?!

Please help?

Code:
navigator.geolocation.getCurrentPosition(function(position){
                                         
    //mypoint = new GLatLng(position.coords.latitude,position.coords.longitude);
    
    mypoint = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
    
        }, function(){
                                         
    //mypoint = new GLatLng(resultLat,resultLng);
                                         
    mypoint = new google.maps.LatLng(resultLat,resultLng);
                                         
});