Class: Utilities::Geo::ConvertToDecimalDegrees

Inherits:
Object
  • Object
show all
Defined in:
lib/utilities/geo.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Ignored) initialize(coordinate)

Parameters:

  • coordinate (String)


53
54
55
56
# File 'lib/utilities/geo.rb', line 53

def initialize(coordinate)
  @dms = coordinate
  @dd  = Utilities::Geo.degrees_minutes_seconds_to_decimal_degrees(coordinate)
end

Instance Attribute Details

- (Object) dd (readonly)

Returns the value of attribute dd



49
50
51
# File 'lib/utilities/geo.rb', line 49

def dd
  @dd
end

- (Object) dms (readonly)

Returns the value of attribute dms



49
50
51
# File 'lib/utilities/geo.rb', line 49

def dms
  @dms
end