Module: FasterHaversine
- Defined in:
- lib/faster_haversine.rb
Class Method Summary collapse
-
.distance(lat1, lng1, lat2, lng2) ⇒ Float
Calculates distance between two points.
Class Method Details
.distance(lat1, lng1, lat2, lng2) ⇒ Float
Calculates distance between two points
12 13 14 |
# File 'lib/faster_haversine.rb', line 12 def self.distance(lat1, lng1, lat2, lng2) haversine_distance(lat1, lng1, lat2, lng2) end |