in assets/www/scripts/photark_geoLocation.js [53:69]
function updateLocation(){
var latlng = new google.maps.LatLng(pos.coords.latitude,pos.coords.longitude);
//var latlng = new google.maps.LatLng(6.9167,79.8333);
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'latLng': latlng}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var address= (results[0].formatted_address);
loc = address;
updateDB();
alert("Location updated:"+address);
} else {
alert("Geocoder failed due to: " + status);
}
});
$.mobile.hidePageLoadingMsg();
$.mobile.changePage("#main");
}