lib/geokit-rails/acts_as_mappable.rb
# Returns the distance SQL using the flat-world formula (Phythagorean Theory).  The SQL is tuned
# to the database in use.
Returns the distance SQL using the flat-world formula (Phythagorean Theory).  The SQL is tuned
to the database in use.
Returns the distance SQL using the flat - world formula ( Phythagorean Theory ) . The SQL is tuned to the database in use .
def flat_distance_sql(origin, units)
        lat_degree_units = units_per_latitude_degree(units)
        lng_degree_units = units_per_longitude_degree(origin.lat, units)
        adapter.flat_distance_sql(origin, lat_degree_units, lng_degree_units)
      end
def flat_distance_sql ( origin , units ) lat_degree_units = units_per_latitude_degree ( units ) lng_degree_units = units_per_longitude_degree ( origin . lat , units ) adapter . flat_distance_sql ( origin , lat_degree_units , lng_degree_units ) end
Returns the distance SQL using the flat-world formula (Phythagorean Theory).
Returns the distance SQL using the flat - world formula ( Phythagorean Theory ) .
origin
<not_specific>
units
<not_specific>