how to check the lat lng is in range code example
Example: how to know if a lat/lng falls within another lat/lng
function arePointsNear(point1, point2) {
var sw = new google.maps.LatLng(point2.lat() - 0.005, point2.lng() - 0.005);
var ne = new google.maps.LatLng(point2.lat() + 0.005, point2.lng() + 0.005);
var bounds = new google.maps.LatLngBounds(sw, ne);
if (bounds.contains (point1))
return true;
return false;
}