From b9f181307535343029866bac8d7124b53109035b Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Mon, 21 Mar 2011 21:49:12 -0400
Subject: [PATCH] Adjust Earth's radius based on Wikipedia.

---
 lib/geocoder/calculations.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/geocoder/calculations.rb b/lib/geocoder/calculations.rb
index a3c69ce8..8375a0f7 100644
--- a/lib/geocoder/calculations.rb
+++ b/lib/geocoder/calculations.rb
@@ -118,9 +118,10 @@ module Geocoder
 
     ##
     # Radius of the earth, in miles.
+    # Taken from: http://en.wikipedia.org/wiki/Earth_radius
     #
     def earth_radius
-      3956
+      3959.0
     end
 
     ##
-- 
GitLab