Method: Geocoder::Calculations#distance_to_radians
- Defined in:
- lib/geocoder/calculations.rb
#distance_to_radians(distance, units = nil) ⇒ Object
319 320 321 |
# File 'lib/geocoder/calculations.rb', line 319 def distance_to_radians(distance, units = nil) distance.to_f / earth_radius(units) end |