1
Answer

How to get lat long for user location with web application?

maulik patel

maulik patel

8y
630
1
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;
}
 
});
 
Answers (1)