module Geocoder::Store::Base
def distance_to(point, units = :mi)
(:mi or :km; default is :mi).
the point. Also takes a symbol specifying the units
See Geocoder::Calculations.distance_between for ways of specifying
Calculate the distance from the object to an arbitrary point.
#
def distance_to(point, units = :mi) return nil unless geocoded? Geocoder::Calculations.distance_between( to_coordinates, point, :units => units) end