maulik patel

maulik patel

  • NA
  • 370
  • 0

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

Jan 20 2017 7:23 AM
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)