lib/gis/distance.rb in gis-distance-1.0.0 vs lib/gis/distance.rb in gis-distance-1.0.1
- old
+ new
@@ -4,11 +4,11 @@
class Distance
# Error raised if latitude or longitude values are invalid.
class Error < StandardError; end
# The version of the gis-distance library
- VERSION = '1.0.0'
+ VERSION = '1.0.1'
# Create a new GIS::Distance object using the two sets of coordinates
# that are provided.
#
# If invalid coordinates are provided a GIS::Distance::Error is raised.
@@ -43,10 +43,10 @@
#
# See http://en.wikipedia.org/wiki/Earth_radius for more information.
#
def radius=(kms)
if kms < 6357.0 || kms > 6378.0
- raise Error, "Proposed radius '#{kms}' is out of range"
+ raise Error, "Proposed radius '#{kms}' is out of range"
end
@radius = kms
end
# Returns the formula used to calculate the distance. The default formula