Gears
watchPosition
to get called whenever the user moves. var geo = google.gears.factory.create('beta.geolocation'); function updatePosition(position) { alert('Current lat/lon is: ' + position.latitude + ',' + position.longitude); } function handleError(positionError) { alert('Attempt to get location failed: ' + positionError.message); } geo.getCurrentPosition(updatePosition, handleError);
9 of 20