geocoder-olleh 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ca04cde0b87e5bc5f8c196176e4ecb9a2e3a7fb
4
- data.tar.gz: 09b9d95cf3f6050d31923c8ab4c9c8c86460e81f
3
+ metadata.gz: cc501f797e1cb573750e39461008492c5f2e6ede
4
+ data.tar.gz: 546d18fc3a065185883e83d35495d2ea2173d2e9
5
5
  SHA512:
6
- metadata.gz: 648347a96b2c62f5b20c13952a74af18b1129023f8fc83d8818fbc39522961231aebb3d3b729c00b3490bfc7ab02262e9256d563b22215ab9f15a04a4624793f
7
- data.tar.gz: 4f2a2971c5038a613e06998d6a73e3d4c2f7a2fd2889a7647c933dba97b50cd85e1f43712f5de3e05fb722b33acee5f01eef4b307cec310fa4688b93407e550a
6
+ metadata.gz: a2a873ddadab1d82938c17205ab800753909788a2eed6bc641cd5860198d7e9d363394c674906e10d9ac7896f02035cc0fa5451b3503fc94d607bfbf99ac4f85
7
+ data.tar.gz: d9c6ffee022e9492b8d27bdb55b44bbf74d1955ff6e376fa315cb923c47a819010d0ef4ab51890fe8844a152d429f85994161dde8670a25ceccadbc97ab778ac
@@ -48,6 +48,16 @@ module Geocoder::Lookup
48
48
  'wgs84' => 7,
49
49
  'bessel' => 8
50
50
  }
51
+ ROUTE_COORD_TYPES = {
52
+ 'geographic'=> 0,
53
+ 'tm_west' => 1,
54
+ 'tm_mid' => 2,
55
+ 'tm_east' => 3,
56
+ 'katec' => 4,
57
+ 'utm52' => 5,
58
+ 'utm51' => 6,
59
+ 'utmk' => 7
60
+ }
51
61
 
52
62
  def initialize
53
63
  super
@@ -89,6 +99,10 @@ module Geocoder::Lookup
89
99
  COORD_TYPES
90
100
  end
91
101
 
102
+ def self.route_coord_types
103
+ ROUTE_COORD_TYPES
104
+ end
105
+
92
106
  def auth_key
93
107
  token
94
108
  end
@@ -174,8 +188,8 @@ module Geocoder::Lookup
174
188
  VY2: query.options[:vy2],
175
189
  VX3: query.options[:vx3],
176
190
  VY3: query.options[:vy3],
177
- RPTYPE: "0",
178
- COORDTYPE: Olleh.coord_types[query.options[:coord_type]] || 7,
191
+ RPTYPE: 0,
192
+ COORDTYPE: Olleh.route_coord_types[query.options[:coord_type]] || 7,
179
193
  PRIORITY: Olleh.priority[query.options[:priority]],
180
194
  timestamp: now
181
195
  })
@@ -1,5 +1,5 @@
1
1
  module Geocoder
2
2
  module Olleh
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.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.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaigouk Kim