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 +4 -4
- data/lib/geocoder/olleh/lookups/olleh.rb +16 -2
- 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: cc501f797e1cb573750e39461008492c5f2e6ede
|
4
|
+
data.tar.gz: 546d18fc3a065185883e83d35495d2ea2173d2e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
178
|
-
COORDTYPE: Olleh.
|
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
|
})
|