From 332a7a457d443eadfe2bc4a6da567c876a963691 Mon Sep 17 00:00:00 2001 From: Steve Jorgensen <stevej@stevej.name> Date: Sun, 26 Jun 2016 04:23:22 -0700 Subject: [PATCH] Add MOD to SQL functions reqd. list --- lib/geocoder/sql.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/geocoder/sql.rb b/lib/geocoder/sql.rb index 669e262c..e2714ee4 100644 --- a/lib/geocoder/sql.rb +++ b/lib/geocoder/sql.rb @@ -4,7 +4,7 @@ module Geocoder ## # Distance calculation for use with a database that supports POWER(), - # SQRT(), PI(), and trigonometric functions SIN(), COS(), ASIN(), and + # SQRT(), PI(), and trigonometric functions SIN(), COS(), ASIN(), # ATAN2(). # # Based on the excellent tutorial at: @@ -59,6 +59,9 @@ module Geocoder # 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 # -- GitLab