Browse files

Merge pull request #1077 from stevecj/doc-fix-sql-doesnt-require-degr…

…ees-or-radians-functions
  • Loading branch information...
2 parents 4315739 + 332a7a4 commit b9179b6667a756c9850e05819526770d14108da2 @alexreisner committed on GitHub Jun 27, 2016
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/geocoder/sql.rb
View
7 lib/geocoder/sql.rb
@@ -4,8 +4,8 @@ module Sql
##
# Distance calculation for use with a database that supports POWER(),
- # SQRT(), PI(), and trigonometric functions SIN(), COS(), ASIN(),
- # ATAN2(), DEGREES(), and RADIANS().
+ # SQRT(), PI(), and trigonometric functions SIN(), COS(), ASIN(),
+ # ATAN2().
#
# Based on the excellent tutorial at:
# http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL
@@ -59,6 +59,9 @@ def within_bounding_box(sw_lat, sw_lng, ne_lat, ne_lng, lat_attr, lon_attr)
# and an options hash which must include a :bearing value
# (:linear or :spherical).
#
+ # For use with a database that supports MOD() and trigonometric functions
+ # SIN(), COS(), ASIN(), ATAN2().
+ #
# Based on:
# http://www.beginningspatial.com/calculating_bearing_one_point_another
#

0 comments on commit b9179b6

Please sign in to comment.