Module: Drifter::Location::Locatable
- Included in:
- Drifter::Location
- Defined in:
- lib/drifter/location/locatable.rb
Instance Method Summary collapse
Instance Method Details
#distance_to(loc, options = {}) ⇒ Object
nodoc
8 9 10 |
# File 'lib/drifter/location/locatable.rb', line 8 def distance_to(loc, ={}) Drifter::Distance::Haversine.between(self, loc, ) end |