Class: GeoDistance::Haversine

Inherits:
DistanceFormula
  • Object
show all
Defined in:
lib/geo_magic/distance.rb

Class Method Summary collapse

Class Method Details

.point_distance(point_a, point_b) ⇒ Object



3
4
5
6
# File 'lib/geo_magic/distance.rb', line 3

def self.point_distance point_a, point_b
  points = GeoMagic::Util.extract_points point_a, point_b
  distance *points
end