Skip to content
Snippets Groups Projects
Commit b9179b66 authored by Alex Reisner's avatar Alex Reisner Committed by GitHub
Browse files

Merge pull request #1077 from stevecj/doc-fix-sql-doesnt-require-degrees-or-radians-functions

parents 43157394 332a7a45
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,8 @@ module Geocoder ...@@ -4,8 +4,8 @@ module Geocoder
## ##
# Distance calculation for use with a database that supports POWER(), # Distance calculation for use with a database that supports POWER(),
# SQRT(), PI(), and trigonometric functions SIN(), COS(), ASIN(), # SQRT(), PI(), and trigonometric functions SIN(), COS(), ASIN(),
# ATAN2(), DEGREES(), and RADIANS(). # ATAN2().
# #
# Based on the excellent tutorial at: # Based on the excellent tutorial at:
# http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL # http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL
...@@ -59,6 +59,9 @@ module Geocoder ...@@ -59,6 +59,9 @@ module Geocoder
# and an options hash which must include a :bearing value # and an options hash which must include a :bearing value
# (:linear or :spherical). # (:linear or :spherical).
# #
# For use with a database that supports MOD() and trigonometric functions
# SIN(), COS(), ASIN(), ATAN2().
#
# Based on: # Based on:
# http://www.beginningspatial.com/calculating_bearing_one_point_another # http://www.beginningspatial.com/calculating_bearing_one_point_another
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment