Closed acitjazz closed 7 years ago
@acitjazz hi! You can write something like that
if(navigator.geolocation){
navigator.geolocation.getCurrentPosition(function (position) {
var location = $('#us3').locationpicker('location');
var from = new google.maps.LatLng(location.latitude, location.longitude);
var to = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
alert(google.maps.geometry.spherical.computeDistanceBetween(from, to) <= location.radius);
})
}
That must help you.
its work!! thankss...!!
hi,, great plugin ,, thanks. but i have a question.. . how to check if my current location is inside the radius circle of Picker?