Module: GeoUnits::UnitMaps

Included in:
GeoDistance, GeoDistance::Unit
Defined in:
lib/geo_vectors/util/geo_units.rb

Instance Method Summary collapse

Instance Method Details

#earth_radiusObject



34
35
36
37
38
39
40
41
# File 'lib/geo_vectors/util/geo_units.rb', line 34

def earth_radius
  {
    :feet => 20895592, 
    :meters => 6371000,
    :kms => 6371, 
    :miles => 3956
  }
end

#meters_mapObject



43
44
45
46
47
48
49
50
51
# File 'lib/geo_vectors/util/geo_units.rb', line 43

def meters_map
  {
   :feet => 3.2808,
   :meters => 1,
   :kms => 0.001,
   :miles => 0.00062137,
   :radians => 111170
  }
end