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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2afc3e7667878e6845e61eba31f0281ad67c123
4
- data.tar.gz: 306fa16f547805908e9976878b9de9a7d0e1e7c9
3
+ metadata.gz: 52c8c58f189f258e7bd8a5077b6535dad1b22553
4
+ data.tar.gz: e55643a6a4ae11eb8354f2f569255ac03fc38eeb
5
5
  SHA512:
6
- metadata.gz: f16ad4659d8e5dc909eaa4d0bba1f5c03878f0e4245ea17bb98e9af49f950508c7c97bbabfa759191168977fea4154e2c400c77639ac72f1968379705cb4c4d5
7
- data.tar.gz: e148fbf059d6726aef6587351876686962ae4775802e8ec3006b574173527c97ccce516a7a349d2b2933f286dc74847cf1c8f4217428b9370dbb3d91fffcb3bc
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 = {
@@ -1,5 +1,5 @@
1
1
  module Geocoder
2
2
  module Olleh
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geocoder-olleh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaigouk Kim