Method: Geocoder::Calculations#to_nautical_miles

Defined in:
lib/geocoder/calculations.rb

#to_nautical_miles(km) ⇒ Object

Convert kilometers to nautical miles.



346
347
348
349
# File 'lib/geocoder/calculations.rb', line 346

def to_nautical_miles(km)
  Geocoder.log(:warn, "DEPRECATION WARNING: Geocoder::Calculations.to_nautical_miles is deprecated and will be removed in Geocoder 1.5.0. Please multiply by KM_IN_NM instead.")
  km * KM_IN_NM
end