geocoder-olleh 0.2.4 → 0.2.5
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/geocoder/lookups/olleh.rb +11 -1
- data/lib/geocoder/olleh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52c8c58f189f258e7bd8a5077b6535dad1b22553
|
|
4
|
+
data.tar.gz: e55643a6a4ae11eb8354f2f569255ac03fc38eeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecfa0c37449a223e726ea42ecb3476bf3631c778bde7bf03a973856957e530393a85437e18701202e4ade1c4fe4ce3517d6d06024fac154d63bbf9abf84e49ed
|
|
7
|
+
data.tar.gz: f244862f4593922cf8924dc84495ad42609a043dbd523b2503cc8a5a9da0f7fec81deccc506f3292cab62dcc3f42a6cf9ac5ee94d861aa70234e25788c5c1723
|
|
@@ -48,6 +48,7 @@ module Geocoder::Lookup
|
|
|
48
48
|
'wgs84' => 7,
|
|
49
49
|
'bessel' => 8
|
|
50
50
|
}
|
|
51
|
+
|
|
51
52
|
ROUTE_COORD_TYPES = {
|
|
52
53
|
'geographic'=> 0,
|
|
53
54
|
'tm_west' => 1,
|
|
@@ -59,6 +60,11 @@ module Geocoder::Lookup
|
|
|
59
60
|
'utmk' => 7
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
NEW_ADDR_SEARCH_OPTIONS = {
|
|
64
|
+
'search_names_too' => 0,
|
|
65
|
+
'search_address_only' => 1
|
|
66
|
+
}
|
|
67
|
+
|
|
62
68
|
def use_ssl?
|
|
63
69
|
true
|
|
64
70
|
end
|
|
@@ -71,6 +77,10 @@ module Geocoder::Lookup
|
|
|
71
77
|
base_url(query) + url_query_string(query)
|
|
72
78
|
end
|
|
73
79
|
|
|
80
|
+
def self.new_addr_search_options
|
|
81
|
+
NEW_ADDR_SEARCH_OPTIONS
|
|
82
|
+
end
|
|
83
|
+
|
|
74
84
|
def self.priority
|
|
75
85
|
PRIORITY
|
|
76
86
|
end
|
|
@@ -192,7 +202,7 @@ module Geocoder::Lookup
|
|
|
192
202
|
option: "1",
|
|
193
203
|
places: query.options[:places],
|
|
194
204
|
sr: query.options[:sr],
|
|
195
|
-
isaddr: "1"
|
|
205
|
+
isaddr: Olleh.new_addr_search_options[query.options[:isaddr]] || "1"
|
|
196
206
|
}
|
|
197
207
|
when "route_search"
|
|
198
208
|
hash = {
|