ReverseGeo 0.2.0 → 0.2.1
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 +4 -4
- data/lib/reverse_geo/reverse_geo.rb +2 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b67f8d4f0ac1a9709e65d72d206c8fa9cb58872d
|
4
|
+
data.tar.gz: 77485ec47470d22cfbf5d88851c3a030db7fc95e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30dfca6d1ebf6384d05e3356be20e481aec1ac7d777cf849d7a76a836726726c3da474299f6f87f93c5a5c48c230d041c349003b877765bb56c7a96b4dd139c4
|
7
|
+
data.tar.gz: 88d0571e78dd75239633a1b4936d9f7ec1951178566233f9d26ed8f7bc72344e15fed10631433f7bd60fc9b052c901f4a2845429406f4b67f77dd87ba500b0af
|
@@ -2,10 +2,10 @@ require 'rgeo'
|
|
2
2
|
require 'rgeo/geo_json'
|
3
3
|
|
4
4
|
class ReverseGeo
|
5
|
-
|
5
|
+
default_shapefile = 'World-EEZ.geojson'
|
6
6
|
|
7
7
|
def initialize(file = nil)
|
8
|
-
file ||= File.join(File.dirname(__FILE__),
|
8
|
+
file ||= File.join(File.dirname(__FILE__), default_shapefile)
|
9
9
|
raise ArgumentError, 'Did not supply a valid geojson file.' unless File.exist?(file)
|
10
10
|
|
11
11
|
@factory = RGeo::Geos.factory(srid: 4326)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ReverseGeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luka Mirosevic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rgeo
|
@@ -47,8 +47,9 @@ files:
|
|
47
47
|
- lib/reverse_geo.rb
|
48
48
|
- lib/reverse_geo/reverse_geo.rb
|
49
49
|
- lib/reverse_geo/World-EEZ.geojson
|
50
|
-
homepage:
|
51
|
-
licenses:
|
50
|
+
homepage: https://github.com/lmirosevic/ReverseGeo
|
51
|
+
licenses:
|
52
|
+
- Apache License 2.0
|
52
53
|
metadata: {}
|
53
54
|
post_install_message:
|
54
55
|
rdoc_options: []
|
@@ -69,5 +70,6 @@ rubyforge_project:
|
|
69
70
|
rubygems_version: 2.0.3
|
70
71
|
signing_key:
|
71
72
|
specification_version: 4
|
72
|
-
summary: A gem for reverse geocoding lat/lng pairs into a 3 letter ISO country code
|
73
|
+
summary: A gem for reverse geocoding lat/lng pairs into a 3 letter ISO country code,
|
74
|
+
fully in-memory with no external service access.
|
73
75
|
test_files: []
|