lib/geocollider.rb
def check_point(point1, point2, distance_threshold = 8.0)
      if haversine_distance(point1, point2) < distance_threshold
        return true
      else
        return false
      end
    end
# Check if two {Geocollider::Point} objects are within a given
# distance threshold (in kilometers).
Check if two {Geocollider::Point} objects are within a given
distance threshold (in kilometers).
Check if two { Geocollider :: Point } objects are within a given distance threshold ( in kilometers ) .
def check_point(point1, point2, distance_threshold = 8.0)
      if haversine_distance(point1, point2) < distance_threshold
        return true
      else
        return false
      end
    end
def check_point ( point1 , point2 , distance_threshold = 8.0 ) if haversine_distance ( point1 , point2 ) < distance_threshold return true else return false end end
Check if two {Geocollider::Point} objects are within a given
distance threshold (in kilometers).
Check if two { Geocollider :: Point } objects are within a given distance threshold ( in kilometers ) .
point1
point2
distance_threshold