gis-distance 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: de0d6744ec7592d14cdb3398067abd15588b55d0
4
- data.tar.gz: eb2841a2bc5a5929ad11e2f80fdecdaae76790f3
2
+ SHA256:
3
+ metadata.gz: 3ada8cb52ba2e522d5315e73c94a72b9c766b53bd24e37d72448ffdaed26abdc
4
+ data.tar.gz: 1cd738a5fed67d46ffe50358d3a72db781fe2d5f17e73e0cece9b6244d7f0127
5
5
  SHA512:
6
- metadata.gz: ea6d9b7e977287c7eed702bb268201fab900b676289ed74c1e6a79a46ada9b5a3a867c7fab1050c2c6321e37b23ec224a9910ea3440bf43d763650fa754b3b3e
7
- data.tar.gz: 75fb7849d35c167dc14563a9c711abf6a734491da8ce4f74687c1c721c91609bbaf04b68ed21f15149d8ebea9fe2628bd09f55e9b9f2d221f78550b7af53924a
6
+ metadata.gz: 7b34a028b93f9d24d25c5d6bfb3a154e2948ad4f9e2862c485abfb5fb62ba490e342f8d830735c198ee0fc211519e882bea031ea2c000c7a933eae1d89dca8ef
7
+ data.tar.gz: d49169c3d2f9e433a17d082259ffa5cabe52ed4f63a8d92be13ce29f3906148d55f3cfc02c8646a645f98fb012f14ea7967db9c0c4890110e8ea8c46fce940b3
Binary file
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,11 @@
1
+ == 1.0.2 - 22-Mar-2018
2
+ * Added 'cosines' as a supported formula. This will use the Law of cosines
3
+ to calculate the distance.
4
+ * Added metadata to the gemspec.
5
+ * Added a cert.
6
+ * Rakefile now assumes Rubygems 2.x, and other minor updates.
7
+ * Added a gis-distance.rb file for convenience.
8
+
1
9
  == 1.0.1 - 26-Oct-2014
2
10
  * Updated gemspec, Rakefile.
3
11
 
data/MANIFEST CHANGED
@@ -3,5 +3,6 @@
3
3
  * README
4
4
  * Rakefile
5
5
  * gis-distance.gemspec
6
+ * lib/gis-distance.rb
6
7
  * lib/gis/distance.rb
7
8
  * test/test_gis_distance.rb
data/README CHANGED
@@ -6,11 +6,15 @@ two points using the formula of your choice.
6
6
  gem install gis-distance
7
7
 
8
8
  == Synopsis
9
- require 'gis/distance'
9
+ require 'gis/distance' # or 'gis-distance'
10
10
 
11
11
  # New York to Los Angeles
12
12
  gis = GIS::Distance.new(40.47, 73.58, 34.3, 118.15)
13
13
 
14
+ # Set the formula of your choice
15
+ gis.formula = 'cosines'
16
+ gis.formula = 'haversine'
17
+
14
18
  p gis.distance # Kilometers
15
19
  p gis.distance.mi # Miles
16
20
 
data/Rakefile CHANGED
@@ -9,14 +9,10 @@ CLEAN.include('**/*.gem', '**/*.log')
9
9
  namespace 'gem' do
10
10
  desc 'Create the gis-distance gem'
11
11
  task :create => [:clean] do
12
+ require 'rubygems/package'
12
13
  spec = eval(IO.read('gis-distance.gemspec'))
13
-
14
- if Gem::VERSION < "2.0"
15
- Gem::Builder.new(spec).build
16
- else
17
- require 'rubygems/package'
18
- Gem::Package.build(spec)
19
- end
14
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
15
+ Gem::Package.build(spec, true)
20
16
  end
21
17
 
22
18
  desc 'Install the gis-distance gem'
@@ -0,0 +1,26 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
3
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
5
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI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ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
23
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
24
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
25
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
26
+ -----END CERTIFICATE-----
@@ -1,19 +1,29 @@
1
1
  require 'rubygems'
2
2
 
3
- Gem::Specification.new do |gem|
4
- gem.name = 'gis-distance'
5
- gem.version = '1.0.1'
6
- gem.authors = ['Daniel J. Berger', 'Ardith Falkner']
7
- gem.license = 'Artistic 2.0'
8
- gem.description = 'Calculate the distance between 2 points on Earth'
9
- gem.email = 'djberg96@gmail.com'
10
- gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
11
- gem.test_files = ['test/test_gis_distance.rb']
12
- gem.homepage = 'http://github.com/djberg96/gis-distance'
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'gis-distance'
5
+ spec.version = '1.0.2'
6
+ spec.authors = ['Daniel J. Berger', 'Ardith Falkner']
7
+ spec.license = 'Artistic 2.0'
8
+ spec.description = 'Calculate the distance between two points on Earth'
9
+ spec.email = 'djberg96@gmail.com'
10
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
11
+ spec.test_files = ['test/test_gis_distance.rb']
12
+ spec.homepage = 'http://github.com/djberg96/gis-distance'
13
+ spec.cert_chain = ['certs/djberg96_pub.pem']
13
14
 
14
- gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
15
+ spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
15
16
 
16
- gem.summary = <<-EOF
17
+ spec.metadata = {
18
+ 'homepage_uri' => 'https://github.com/djberg96/gis-distance',
19
+ 'bug_tracker_uri' => 'https://github.com/djberg96/gis-distance/issues',
20
+ 'changelog_uri' => 'https://github.com/djberg96/gis-distance/blob/master/CHANGES',
21
+ 'documentation_uri' => 'https://github.com/djberg96/gis-distance/wiki',
22
+ 'source_code_uri' => 'https://github.com/djberg96/gis-distance',
23
+ 'wiki_uri' => 'https://github.com/djberg96/gis-distance/wiki'
24
+ }
25
+
26
+ spec.summary = <<-EOF
17
27
  The gis-distance library provides a simple interface for
18
28
  calculating the distance between two points on Earth using
19
29
  latitude and longitude.
@@ -0,0 +1 @@
1
+ require_relative 'gis/distance'
@@ -1,135 +1,151 @@
1
1
  # The GIS module serves as a namespace only.
2
2
  module GIS
3
- # The Distance class encapsulates methods related to geographic distance.
4
- class Distance
5
- # Error raised if latitude or longitude values are invalid.
6
- class Error < StandardError; end
7
-
8
- # The version of the gis-distance library
9
- VERSION = '1.0.1'
10
-
11
- # Create a new GIS::Distance object using the two sets of coordinates
12
- # that are provided.
13
- #
14
- # If invalid coordinates are provided a GIS::Distance::Error is raised.
15
- #
16
- def initialize(latitude1, longitude1, latitude2, longitude2)
17
- validate(latitude1, longitude1, latitude2, longitude2)
18
-
19
- @latitude1 = latitude1
20
- @longitude1 = longitude1
21
- @latitude2 = latitude2
22
- @longitude2 = longitude2
23
-
24
- @radius = 6367.45
25
- @formula = 'haversine'
26
- @distance = nil
3
+ # The Distance class encapsulates methods related to geographic distance.
4
+ class Distance
5
+ # Error raised if latitude or longitude values are invalid.
6
+ class Error < StandardError; end
7
+
8
+ # The version of the gis-distance library
9
+ VERSION = '1.0.2'.freeze
10
+
11
+ # Create a new GIS::Distance object using the two sets of coordinates
12
+ # that are provided.
13
+ #
14
+ # If invalid coordinates are provided a GIS::Distance::Error is raised.
15
+ #
16
+ def initialize(latitude1, longitude1, latitude2, longitude2)
17
+ validate(latitude1, longitude1, latitude2, longitude2)
18
+
19
+ @latitude1 = latitude1
20
+ @longitude1 = longitude1
21
+ @latitude2 = latitude2
22
+ @longitude2 = longitude2
23
+
24
+ @radius = 6367.45
25
+ @formula = 'haversine'
26
+ @distance = nil
27
+ end
28
+
29
+ # Returns the radius of the Earth in kilometers. The default is 6367.45.
30
+ #
31
+ def radius
32
+ @radius
33
+ end
34
+
35
+ # Sets the radius of the Earth in kilometers. This is variable because
36
+ # the Earth is not perfectly spherical, and you may wish to adjust it.
37
+ #
38
+ # However, the possible range of values is limited from 6357.0 to 6378.0.
39
+ # If a value outside of this range is provided a GIS::Distance::Error
40
+ # is raised.
41
+ #
42
+ # The default value is 6367.45.
43
+ #
44
+ # See http://en.wikipedia.org/wiki/Earth_radius for more information.
45
+ #
46
+ def radius=(kms)
47
+ if kms < 6357.0 || kms > 6378.0
48
+ raise Error, "Proposed radius '#{kms}' is out of range"
27
49
  end
28
-
29
- # Returns the radius of the Earth in kilometers. The default is 6367.45.
30
- #
31
- def radius
32
- @radius
50
+ @radius = kms
51
+ end
52
+
53
+ # Returns the formula used to calculate the distance. The default formula
54
+ # is 'haversine'.
55
+ #--
56
+ # See http://en.wikipedia.org/wiki/Haversine_formula for details.
57
+ def formula
58
+ @formula
59
+ end
60
+
61
+ # Sets the formula to be used internally for calculating the distance.
62
+ # The default is 'haversine'. Your other option is 'cosines' (i.e. the
63
+ # Law of Cosines).
64
+ #
65
+ # If an unsupported formula is provided a GIS::Distance::Error is raised.
66
+ #
67
+ def formula=(formula)
68
+ case formula.to_s.downcase
69
+ when 'haversine'
70
+ @formula = 'haversine'
71
+ when 'cosines'
72
+ @formula = 'cosines'
73
+ else
74
+ raise Error, "Formula '#{formula}' not supported"
33
75
  end
34
-
35
- # Sets the radius of the Earth in kilometers. This is variable because
36
- # the Earth is not perfectly spherical, and you may wish to adjust it.
37
- #
38
- # However, the possible range of values is limited from 6357.0 to 6378.0.
39
- # If a value outside of this range is provided a GIS::Distance::Error
40
- # is raised.
41
- #
42
- # The default value is 6367.45.
43
- #
44
- # See http://en.wikipedia.org/wiki/Earth_radius for more information.
45
- #
46
- def radius=(kms)
47
- if kms < 6357.0 || kms > 6378.0
48
- raise Error, "Proposed radius '#{kms}' is out of range"
49
- end
50
- @radius = kms
76
+ end
77
+
78
+ # Returns the distance (in kilometers) between the two coordinates
79
+ # provided in the constructor.
80
+ #
81
+ def distance
82
+ @distance =
83
+ case @formula.to_s.downcase
84
+ when 'haversine'
85
+ haversine_formula
86
+ when 'cosines'
87
+ law_of_cosines_formula
51
88
  end
52
-
53
- # Returns the formula used to calculate the distance. The default formula
54
- # is 'haversine'.
55
- #--
56
- # See http://en.wikipedia.org/wiki/Haversine_formula for details.
57
- def formula
58
- @formula
59
- end
60
-
61
- # Sets the formula to be used internally for calculating the distance.
62
- # The default is 'haversine'.
63
- #
64
- # If an unsupported formula is provided a GIS::Distance::Error is raised.
65
- #
66
- def formula=(formula)
67
- case formula.to_s.downcase
68
- when 'haversine'
69
- @formula = 'haversine'
70
- else
71
- raise Error, "Formula '#{formula}' not supported"
72
- end
73
- end
74
-
75
- # Returns the distance (in kilometers) between the two coordinates
76
- # provided in the constructor.
77
- #
78
- def distance
79
- @distance =
80
- case @formula.to_s.downcase
81
- when 'haversine'
82
- haversine_formula
83
- end
84
- end
85
-
86
- private
87
-
88
- # Validate the latitude and longitude values. Latitudes must be between
89
- # 90.0 and -90.0 while longitudes must be between 180.0 and -180.0.
90
- #
91
- def validate(lat1, lon1, lat2, lon2)
92
- [lat1, lat2].each{ |lat|
93
- if lat > 90 || lat < -90
94
- msg = "Latitude '#{lat}' is invalid - must be between -90 and 90"
95
- raise Error, msg
96
- end
97
- }
98
-
99
- [lon1, lon2].each{ |lon|
100
- if lon > 180 || lon < -180
101
- msg = "Longitude '#{lon}' is invalid - must be between -180 and 180"
102
- raise Error, msg
103
- end
104
- }
89
+ end
90
+
91
+ private
92
+
93
+ # Validate the latitude and longitude values. Latitudes must be between
94
+ # 90.0 and -90.0 while longitudes must be between 180.0 and -180.0.
95
+ #
96
+ def validate(lat1, lon1, lat2, lon2)
97
+ [lat1, lat2].each{ |lat|
98
+ if lat > 90 || lat < -90
99
+ msg = "Latitude '#{lat}' is invalid - must be between -90 and 90"
100
+ raise Error, msg
101
+ end
102
+ }
103
+
104
+ [lon1, lon2].each{ |lon|
105
+ if lon > 180 || lon < -180
106
+ msg = "Longitude '#{lon}' is invalid - must be between -180 and 180"
107
+ raise Error, msg
108
+ end
109
+ }
110
+ end
111
+
112
+ # See https://en.wikipedia.org/wiki/Law_of_cosines
113
+ #
114
+ def law_of_cosines_formula
115
+ sin1 = Math.sin(@latitude1 * Math::PI / 180)
116
+ sin2 = Math.sin(@latitude2 * Math::PI / 180)
117
+ cos1 = Math.cos(@latitude1 * Math::PI / 180)
118
+ cos2 = Math.cos(@latitude2 * Math::PI / 180)
119
+ cos3 = Math.cos(@longitude2 * Math::PI / 180 - @longitude1 * Math::PI / 180)
120
+
121
+ Math.acos(sin1 * sin2 + cos1 * cos2 * cos3) * radius
122
+ end
123
+
124
+ # See http://en.wikipedia.org/wiki/Haversine_formula
125
+ #
126
+ def haversine_formula
127
+ lat1 = @latitude1 * Math::PI / 180
128
+ lon1 = @longitude1 * Math::PI / 180
129
+ lat2 = @latitude2 * Math::PI / 180
130
+ lon2 = @longitude2 * Math::PI / 180
131
+
132
+ dlat = lat2 - lat1
133
+ dlon = lon2 - lon1
134
+
135
+ a = ((Math.sin(dlat/2))**2) + (Math.cos(lat1) * Math.cos(lat2) * (Math.sin(dlon/2)) ** 2)
136
+ c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a))
137
+
138
+ radius * c
139
+ end
140
+
141
+ # Add a custom method to the base Float class if it isn't already defined.
142
+ class ::Float
143
+ unless self.respond_to?(:mi)
144
+ # Convert miles to kilometers.
145
+ def mi
146
+ self * 0.621371192
147
+ end
105
148
  end
106
-
107
- # See http://en.wikipedia.org/wiki/Haversine_formula
108
- #
109
- def haversine_formula
110
- lat1 = @latitude1 * Math::PI / 180
111
- lon1 = @longitude1 * Math::PI / 180
112
- lat2 = @latitude2 * Math::PI / 180
113
- lon2 = @longitude2 * Math::PI / 180
114
-
115
- dlat = lat2 - lat1
116
- dlon = lon2 - lon1
117
-
118
- a = ((Math.sin(dlat/2))**2) + (Math.cos(lat1) * Math.cos(lat2) * (Math.sin(dlon/2)) ** 2)
119
- c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a))
120
-
121
- @radius * c
122
- end
123
-
124
- # Add a custom method to the base Float class if it isn't already defined.
125
- class ::Float
126
- unless self.respond_to?(:mi)
127
- # Convert miles to kilometers.
128
- def mi
129
- self * 0.621371192
130
- end
131
- end
132
- end
133
- end
149
+ end
150
+ end
134
151
  end
135
-
@@ -7,7 +7,8 @@ class TC_GIS_Distance < Test::Unit::TestCase
7
7
  end
8
8
 
9
9
  def test_version
10
- assert_equal('1.0.1', GIS::Distance::VERSION)
10
+ assert_equal('1.0.2', GIS::Distance::VERSION)
11
+ assert_true(GIS::Distance::VERSION.frozen?)
11
12
  end
12
13
 
13
14
  def test_distance_basic_functionality
metadata CHANGED
@@ -1,17 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gis-distance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  - Ardith Falkner
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain: []
12
- date: 2014-10-26 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
15
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
16
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
17
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
18
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
19
+ A+j+pc8fgpRgBVmH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Uwrvw7APf
35
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
36
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
37
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
38
+ -----END CERTIFICATE-----
39
+ date: 2018-03-22 00:00:00.000000000 Z
13
40
  dependencies: []
14
- description: Calculate the distance between 2 points on Earth
41
+ description: Calculate the distance between two points on Earth
15
42
  email: djberg96@gmail.com
16
43
  executables: []
17
44
  extensions: []
@@ -20,17 +47,29 @@ extra_rdoc_files:
20
47
  - CHANGES
21
48
  - MANIFEST
22
49
  files:
50
+ - certs
51
+ - certs/djberg96_pub.pem
23
52
  - CHANGES
24
- - MANIFEST
25
- - README
26
- - Rakefile
27
53
  - gis-distance.gemspec
54
+ - lib
55
+ - lib/gis
28
56
  - lib/gis/distance.rb
57
+ - lib/gis-distance.rb
58
+ - MANIFEST
59
+ - Rakefile
60
+ - README
61
+ - test
29
62
  - test/test_gis_distance.rb
30
63
  homepage: http://github.com/djberg96/gis-distance
31
64
  licenses:
32
65
  - Artistic 2.0
33
- metadata: {}
66
+ metadata:
67
+ homepage_uri: https://github.com/djberg96/gis-distance
68
+ bug_tracker_uri: https://github.com/djberg96/gis-distance/issues
69
+ changelog_uri: https://github.com/djberg96/gis-distance/blob/master/CHANGES
70
+ documentation_uri: https://github.com/djberg96/gis-distance/wiki
71
+ source_code_uri: https://github.com/djberg96/gis-distance
72
+ wiki_uri: https://github.com/djberg96/gis-distance/wiki
34
73
  post_install_message:
35
74
  rdoc_options: []
36
75
  require_paths:
@@ -47,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
86
  version: '0'
48
87
  requirements: []
49
88
  rubyforge_project:
50
- rubygems_version: 2.4.2
89
+ rubygems_version: 2.7.6
51
90
  signing_key:
52
91
  specification_version: 4
53
92
  summary: The gis-distance library provides a simple interface for calculating the
Binary file