Class: Cdistance::GeoPoint

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/cdistance.rb

Instance Method Summary collapse

Constructor Details

#initialize(lat, lng) ⇒ GeoPoint

Returns a new instance of GeoPoint.



32
33
34
35
36
# File 'lib/cdistance.rb', line 32

def initialize(lat, lng)
  super()
  self[:lat] = lat
  self[:lng] = lng
end