Method: Geocoder::Calculations#to_miles

Defined in:
lib/geocoder/calculations.rb

#to_miles(km) ⇒ Object

Convert kilometers to miles.



338
339
340
341
# File 'lib/geocoder/calculations.rb', line 338

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