Method: Geocoder::Calculations#latitude_degree_distance
- Defined in:
- lib/geocoder/calculations.rb
#latitude_degree_distance(units = nil) ⇒ Object
Distance spanned by one degree of latitude in the given units.
56 57 58 |
# File 'lib/geocoder/calculations.rb', line 56 def latitude_degree_distance(units = nil) 2 * Math::PI * earth_radius(units) / 360 end |