we have web application developed and we capture user location using java script google api but we don't get proper result through it.Kindly suggest any better way to implement it and get better result for user location.
navigator.geolocation.getCurrentPosition(function (position) {
// $("#iframeloading").hide();
if (position !== undefined) {
curlat = position.coords.latitude;
curlon = position.coords.longitude;
}
});