README in gis-distance-1.0.1 vs README in gis-distance-1.0.2
- old
+ new
@@ -4,13 +4,17 @@
== Installation
gem install gis-distance
== Synopsis
-require 'gis/distance'
+require 'gis/distance' # or 'gis-distance'
# New York to Los Angeles
gis = GIS::Distance.new(40.47, 73.58, 34.3, 118.15)
+
+# Set the formula of your choice
+gis.formula = 'cosines'
+gis.formula = 'haversine'
p gis.distance # Kilometers
p gis.distance.mi # Miles
== License