Method: Geocoder::Store::Base#bearing_from
- Defined in:
- lib/geocoder/stores/base.rb
#bearing_from(point, options = {}) ⇒ Object
Calculate the bearing from another point to the object. See Geocoder::Calculations.distance_between for ways of specifying the point.
51 52 53 54 55 56 |
# File 'lib/geocoder/stores/base.rb', line 51 def bearing_from(point, = {}) [:method] ||= self.class.[:method] return nil unless geocoded? Geocoder::Calculations.bearing_between( point, to_coordinates, ) end |