Method: Geocoder::Calculations#longitude_degree_distance

Defined in:
lib/geocoder/calculations.rb

#longitude_degree_distance(latitude, units = nil) ⇒ Object

Distance spanned by one degree of longitude at the given latitude. This ranges from around 69 miles at the equator to zero at the poles.



64
65
66
# File 'lib/geocoder/calculations.rb', line 64

def longitude_degree_distance(latitude, units = nil)
  latitude_degree_distance(units) * Math.cos(to_radians(latitude))
end