Method: Geocoder::Calculations#to_kilometers
- Defined in:
- lib/geocoder/calculations.rb
#to_kilometers(mi) ⇒ Object
Convert miles to kilometers.
330 331 332 333 |
# File 'lib/geocoder/calculations.rb', line 330 def to_kilometers(mi) Geocoder.log(:warn, "DEPRECATION WARNING: Geocoder::Calculations.to_kilometers is deprecated and will be removed in Geocoder 1.5.0. Please multiply by MI_IN_KM instead.") mi * mi_in_km end |