lib/geokit-rails/acts_as_mappable.rb
# Returns the distance SQL using the spherical world formula (Haversine).  The SQL is tuned
# to the database in use.
Returns the distance SQL using the spherical world formula (Haversine).  The SQL is tuned
to the database in use.
Returns the distance SQL using the spherical world formula ( Haversine ) . The SQL is tuned to the database in use .
def sphere_distance_sql(origin, units)
        lat = deg2rad(origin.lat)
        lng = deg2rad(origin.lng)
        multiplier = units_sphere_multiplier(units)
        adapter.sphere_distance_sql(lat, lng, multiplier) if adapter
      end
def sphere_distance_sql ( origin , units ) lat = deg2rad ( origin . lat ) lng = deg2rad ( origin . lng ) multiplier = units_sphere_multiplier ( units ) adapter . sphere_distance_sql ( lat , lng , multiplier ) if adapter end
Returns the distance SQL using the spherical world formula (Haversine).
Returns the distance SQL using the spherical world formula ( Haversine ) .
origin
<not_specific>
units
<not_specific>