hk_geo 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38ef6b8c64fd1e7c0ef151e61a4a5074dbcdcd6a
4
+ data.tar.gz: e22f94cae42008bb4766ef5b91f51b09992b2c9e
5
+ SHA512:
6
+ metadata.gz: 86c83ab0e985cba394d28f0f41db9a1c639958dbff166f0f1632c340cd7c997c0bb3d8b266a319951d322d6283b11da4347536372c7dcf511eedeb5071bc313c
7
+ data.tar.gz: d72f54262d328ddf9e33109dc1e964f3003eaa3057c1fb23228443e4b76556357d59290058b70124adfbb645598739ab3e70fce9ed5e5cbfad13b37c35aaa97c
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in hk_geo.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Francis Chong
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,23 +1,24 @@
1
- = HkGeo
1
+ # HkGeo
2
2
 
3
- == Description
3
+ ## Description
4
4
 
5
5
  A Geo location conversion API for HK.
6
6
 
7
- == Dependency
7
+ ## Dependency
8
8
 
9
9
  * mechanize
10
10
  * rest-client
11
+ * json
11
12
  * nayutaya-googlemaps-polyline
12
13
  * hoe (build)
13
14
 
14
- == Install
15
+ ## Install
15
16
 
16
17
  gem install hk_geo
17
18
 
18
- == Usage
19
+ ## Usage
19
20
 
20
- === Conversion API
21
+ ### Conversion API
21
22
 
22
23
  By default, convert the HK80 location to WGS84/ITRF96
23
24
 
@@ -31,17 +32,31 @@ You may specify other conversion
31
32
  result = HkGeo::Converter.convert("835352.749", "815640.774", HkGeo::SYSTEM_HK80, HkGeo::SYSTEM_ITRF96, HkGeo::UNIT_DM)
32
33
  >> ["22.2745130", "113.5858818"]
33
34
 
34
- === Route Finder API
35
+ ### Route Finder API
35
36
 
36
37
  Use two coordinate to find the route between
37
38
 
38
39
  data = HkGeo::RouteFinder.route("22.445663383,113.983328736", "22.444075388,113.984268260")
39
40
  >> [[22.44557, 113.98324, 3], [22.44487, 113.9839, 0], [22.4431, 113.98512, 1], [22.4424, 113.98548, 0], [22.44182, 113.98568, 0], [22.44122, 113.98581, 0], [22.44078, 113.98582, 1], [22.44044, 113.98581, 0], [22.43885, 113.98556, 0], [22.43727, 113.98526, 0], [22.43569, 113.98487, 1] ... (skipped)
41
+
42
+ ## Rake Task
43
+
44
+ Find route in "Traffic Speed Map" from Hong Kong Government.
45
+
46
+ rake route
40
47
 
41
48
  Check the test for more info.
42
49
 
43
- == Credit
50
+ ## Credit
44
51
 
45
52
  The conversion api rely on the online conversion tool from Survey and Mapping Office. http://www.geodetic.gov.hk/smo/tform/tra_tform.aspx
46
53
 
54
+ The rake task originally from "Data Download for Traffic Speed Map" from GovHK Data.One (http://www.gov.hk/tc/theme/psi/datadownload/traffic.htm), process by waterlou (https://github.com/waterlou).
55
+
56
+ ## Contributing
47
57
 
58
+ 1. Fork it
59
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
60
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
61
+ 4. Push to the branch (`git push origin my-new-feature`)
62
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,12 +1,28 @@
1
+ require "bundler/gem_tasks"
1
2
  require 'rubygems'
2
- require 'hoe'
3
3
 
4
4
  $: << 'lib'
5
- require './lib/hk_geo.rb'
6
- require './lib/tasks/route_finder.rb'
5
+ require './lib/hk_geo'
6
+ require './lib/tasks/route_finder'
7
7
 
8
- Hoe.plugin :gemcutter
9
- Hoe.spec 'hk_geo' do
10
- developer('Francis Chong', 'francis@ignition.hk')
11
- end
8
+ Gem::Specification.new do |s|
9
+ s.name = "hk_geo"
10
+ s.version = HkGeo::VERSION
11
+ s.platform = Gem::Platform::RUBY
12
+ s.authors = ["Francis Chong"]
13
+ s.email = ["francis@ignition.hk"]
14
+ s.homepage = "https://github.com/siuying/hk_geo"
15
+ s.summary = %q{geolocation transormation api for hk.}
16
+ s.description = %q{geolocation transormation api for hk.}
17
+ s.license = "MIT"
12
18
 
19
+ s.add_dependency "mechanize"
20
+ s.add_dependency "rest-client"
21
+ s.add_dependency "json"
22
+ s.add_dependency "nayutaya-googlemaps-polyline"
23
+
24
+ s.files = `git ls-files`.split("\n")
25
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
26
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
+ s.require_paths = ["lib"]
28
+ end
Binary file
@@ -0,0 +1,204 @@
1
+ 722-50059,722,834038.674,816345.067,50059,833862.7,816441.553,HK,MAJOR ROUTE
2
+ 724-722,724,834148.783,816250.647,722,834038.674,816345.067,HK,URBAN ROAD
3
+ 752-875,752,835099.22,815634.373,875,834918.334,815759.379,HK,URBAN ROAD
4
+ 756-752,756,835352.749,815640.774,752,835099.22,815634.373,HK,URBAN ROAD
5
+ 760-756,760,835602.186,815600.695,756,835352.749,815640.774,HK,URBAN ROAD
6
+ 762-50078,762,836029.641,815629.493,50078,836298.985,815671.02,HK,MAJOR ROUTE
7
+ 781-50098,781,836585.353,815155.819,50098,836705.363,815357.127,HK,MAJOR ROUTE
8
+ 786-7861,786,836793.573,815852.754,7861,836714.038,815819.064,HK,URBAN ROAD
9
+ 787-788,787,836656.904,815755.248,788,836606.459,815875.71,HK,MAJOR ROUTE
10
+ 787-7882,787,836656.904,815755.248,7882,836603.538,815878.324,HK,MAJOR ROUTE
11
+ 787-50179,787,836656.904,815755.248,50179,836362.957,815673.882,HK,MAJOR ROUTE
12
+ 788-868,788,836606.459,815875.71,868,836682.388,815883.302,HK,MAJOR ROUTE
13
+ 789-7908,789,836748.301,815908.341,7908,836950.758,815938.449,HK,URBAN ROAD
14
+ 793-877,793,837428.196,816174.589,877,837616.85,816570.66,HK,MAJOR ROUTE
15
+ 793-7918,793,837434.612,816161.378,7918,837006.391,815940.388,HK,URBAN ROAD
16
+ 811-818,811,838249.981,817134.408,818,838881.248,817243.884,HK,MAJOR ROUTE
17
+ 818-821,818,838881.248,817243.884,821,839406.398,817161.385,HK,MAJOR ROUTE
18
+ 821-50107,821,839406.398,817161.385,50107,839823.434,816928.645,HK,MAJOR ROUTE
19
+ 868-870,868,836682.388,815883.302,870,836803.159,815997.652,HK,MAJOR ROUTE
20
+ 870-4651,870,836803.159,815997.652,4651,836884.007,816087.665,HK,MAJOR ROUTE
21
+ 875-3402,875,834918.334,815759.379,3402,834754.135,815848.947,HK,URBAN ROAD
22
+ 877-46498,877,837616.85,816570.66,46498,837982.489,816997.558,HK,MAJOR ROUTE
23
+ 877-793,877,837626.399,816561.52,793,837434.612,816161.378,HK,MAJOR ROUTE
24
+ 893-4652,893,832738.968,816762.428,4652,833101.677,816778.101,HK,MAJOR ROUTE
25
+ 896-724,896,834264.546,816083.739,724,834148.783,816250.647,HK,URBAN ROAD
26
+ 910-931,910,840060.004,816792.715,931,840101.178,816617.612,HK,MAJOR ROUTE
27
+ 930-931,930,840495.49,816655.752,931,839976.076,816575.425,HK,MAJOR ROUTE
28
+ 930-9101,930,840495.49,816655.752,9101,840052.115,816777.46,HK,MAJOR ROUTE
29
+ 931-4650,931,839976.076,816575.425,4650,839919.319,816768.747,HK,MAJOR ROUTE
30
+ 3006-30069,3006,834913.16,818626.797,30069,834823.46,818955.081,K,URBAN ROAD
31
+ 3010-888301,3010,835020.456,819072.594,888301,834711.437,818893.39,K,URBAN ROAD
32
+ 3363-3369,3363,839521.209,820694.514,3369,839269.874,820683.627,K,URBAN ROAD
33
+ 3368-88810,3368,839344.209,820099.964,88810,839314.866,820127.978,K,MAJOR ROUTE
34
+ 3369-33691,3369,839269.874,820683.627,33691,839284.825,820586.955,K,URBAN ROAD
35
+ 3369-3370,3369,839269.874,820683.627,3370,839125.949,820671.968,K,URBAN ROAD
36
+ 3370-34211,3370,839125.949,820671.968,34211,838961.948,820481.832,K,URBAN ROAD
37
+ 3393-88817,3393,838680.921,821720.124,88817,839074.865,821794.406,K,MAJOR ROUTE
38
+ 3395-3393,3395,838185.484,821426.384,3393,838680.921,821720.124,K,MAJOR ROUTE
39
+ 3402-8979,3402,834754.135,815848.947,8979,834575.127,815899.799,HK,URBAN ROAD
40
+ 3417-3681,3417,837789.141,821018.42,3681,837968.472,821192.37,K,URBAN ROAD
41
+ 3419-3417,3419,837531.387,820885.152,3417,837789.141,821018.42,K,URBAN ROAD
42
+ 3450-34502,3450,837010.873,818912.021,34502,836989.173,818891.055,K,URBAN ROAD
43
+ 3453-46312,3453,836694.153,818344.939,46312,836633.89,818130.091,K,MAJOR ROUTE
44
+ 3457-3664,3457,836587.973,817767.834,3664,836446.718,817636.666,K,MAJOR ROUTE
45
+ 3458-88819,3458,836100.641,817358.907,88819,835948.908,817311.201,K,URBAN ROAD
46
+ 3459-3615,3459,835807.883,817301.615,3615,835632.686,817301.908,K,URBAN ROAD
47
+ 3460-78201,3460,835579.522,817480.928,78201,835418.623,817893.881,K,URBAN ROAD
48
+ 3470-3006,3470,834889.426,818187.326,3006,834913.16,818626.797,K,URBAN ROAD
49
+ 3480-88818,3480,836458.317,818948.326,88818,836976.843,818412.791,K,URBAN ROAD
50
+ 3480-888302,3480,836458.317,818948.326,888302,836661.066,818660.839,K,MAJOR ROUTE
51
+ 3483-88825,3483,836440.024,819826.139,88825,836306.663,819564.477,K,MAJOR ROUTE
52
+ 3484-4640,3484,836273.929,819369.685,4640,836269.025,819339.592,K,MAJOR ROUTE
53
+ 3488-3489,3488,836967.085,820564.744,3489,837168.318,820663.995,K,URBAN ROAD
54
+ 3489-88816,3489,837168.318,820663.995,88816,837353.75,820779.14,K,URBAN ROAD
55
+ 3491-3010,3491,835320.029,818933.626,3010,835020.456,819072.594,K,URBAN ROAD
56
+ 3498-3499,3498,835269.643,819039.869,3499,835203.267,819239.124,K,URBAN ROAD
57
+ 3499-88822,3499,835203.267,819239.124,88822,835098.871,819181.09,K,URBAN ROAD
58
+ 3500-3499,3500,835453.715,819296.604,3499,835203.267,819239.124,K,URBAN ROAD
59
+ 3502-3500,3502,835629.414,819329.703,3500,835453.715,819296.604,K,URBAN ROAD
60
+ 3503-3502,3503,835971.906,819718.872,3502,835629.414,819329.703,K,URBAN ROAD
61
+ 3504-888231,3504,836128.396,819945.362,888231,836009.355,819775.102,K,URBAN ROAD
62
+ 3505-3504,3505,836334.997,820230.44,3504,836128.396,819945.362,K,URBAN ROAD
63
+ 3506-3483,3506,836482.181,819918.657,3483,836440.024,819826.139,K,MAJOR ROUTE
64
+ 3615-3460,3615,835632.686,817301.908,3460,835579.522,817480.928,K,URBAN ROAD
65
+ 3632-46322,3632,842224.694,818075.31,46322,842034.07,817933.434,K,MAJOR ROUTE
66
+ 3633-3632,3633,842093.024,818642.008,3632,842224.694,818075.31,K,MAJOR ROUTE
67
+ 3637-888151,3637,841500.294,818838.784,888151,842053.671,818696.967,K,MAJOR ROUTE
68
+ 3639-88814,3639,840935.412,818601.61,88814,841123.667,818587.958,K,MAJOR ROUTE
69
+ 3643-88813,3643,839537.601,819872.588,88813,839988.562,819731.898,K,MAJOR ROUTE
70
+ 3644-3690,3644,839174.133,821171.9,3690,839111.955,820458.628,K,MAJOR ROUTE
71
+ 3651-4632,3651,841880.892,817878.688,4632,842015.881,817960.926,HK,MAJOR ROUTE
72
+ 3664-3458,3664,836446.718,817636.666,3458,836100.641,817358.907,K,URBAN ROAD
73
+ 3681-3395,3681,837968.472,821192.37,3395,838185.484,821426.384,K,URBAN ROAD
74
+ 3690-3643,3690,839111.955,820458.628,3643,839537.601,819872.588,K,MAJOR ROUTE
75
+ 3692-46332,3692,834538.393,818512.558,46332,834395.219,818269.104,K,MAJOR ROUTE
76
+ 3715-3457,3715,837030.317,817998.638,3457,836587.973,817767.834,K,MAJOR ROUTE
77
+ 4640-4643,4640,836269.025,819339.592,4643,836380.592,819078.673,K,MAJOR ROUTE
78
+ 4643-3480,4643,836380.592,819078.673,3480,836458.317,818948.326,K,MAJOR ROUTE
79
+ 4644-88801,4644,835228.606,819561.765,88801,835232.243,819528.557,K,MAJOR ROUTE
80
+ 4646-88806,4646,836422.941,820573.545,88806,836421.253,820544.801,K,URBAN ROAD
81
+ 4647-46478,4647,836609.24,814749.535,46478,836600.096,814778.361,HK,MAJOR ROUTE
82
+ 4648-46488,4648,835776.133,815604.834,46488,835804.774,815605.457,HK,MAJOR ROUTE
83
+ 4649-46497,4649,838019.353,817012.047,46497,837992.283,816985.248,HK,MAJOR ROUTE
84
+ 4649-46499,4649,838010.672,817025.768,46499,838040.608,817047.877,HK,MAJOR ROUTE
85
+ 4650-3651,4650,839919.319,816768.747,3651,841880.892,817878.688,HK,MAJOR ROUTE
86
+ 4651-4631,4651,836884.007,816087.665,4631,836599.836,818132.347,HK,MAJOR ROUTE
87
+ 4652-4633,4652,833101.677,816778.101,4633,834364.207,818290.731,HK,MAJOR ROUTE
88
+ 5011-50119,5011,840851.058,816261.521,50119,840850.736,816287.253,HK,MAJOR ROUTE
89
+ 7861-7871,7861,836714.038,815819.064,7871,836643.102,815784.132,HK,URBAN ROAD
90
+ 7861-50179,7861,836714.038,815819.064,50179,836362.957,815673.882,HK,URBAN ROAD
91
+ 7871-7881,7871,836643.102,815784.132,7881,836592.753,815897.731,HK,URBAN ROAD
92
+ 7881-870,7881,836592.753,815897.731,870,836803.159,815997.652,HK,MAJOR ROUTE
93
+ 7891-789,7881,836701.913,815918.062,789,836748.301,815908.341,HK,MAJOR ROUTE
94
+ 7882-7891,7882,836603.538,815878.324,7891,836701.913,815918.062,HK,MAJOR ROUTE
95
+ 7883-7891,7883,836596.707,815890.625,7891,836701.913,815918.062,HK,MAJOR ROUTE
96
+ 7908-7909,7908,836950.758,815938.449,7909,837000.797,815961.774,HK,URBAN ROAD
97
+ 7909-793,7909,837000.797,815961.774,793,837428.196,816174.589,HK,URBAN ROAD
98
+ 7918-7919,7918,837006.391,815940.388,7919,836956.857,815917.381,HK,URBAN ROAD
99
+ 7919-786,7919,836956.857,815917.381,786,836793.573,815852.754,HK,URBAN ROAD
100
+ 8111-46495,8111,838254.2,817119.959,46495,838048.299,817035.81,HK,MAJOR ROUTE
101
+ 8182-8111,8182,838886.659,817228.946,8111,838254.2,817119.959,HK,MAJOR ROUTE
102
+ 8212-8182,8212,839401.015,817147.538,8182,838886.659,817228.946,HK,MAJOR ROUTE
103
+ 8978-896,8978,834523.708,815916.074,896,834264.546,816083.739,HK,URBAN ROAD
104
+ 8979-8978,8979,834575.127,815899.799,8978,834523.708,815916.074,HK,URBAN ROAD
105
+ 9101-50108,9101,840052.115,816777.46,50108,839863.478,816886.033,HK,MAJOR ROUTE
106
+ 30069-888301,30069,834823.46,818955.081,888301,834711.437,818893.39,K,URBAN ROAD
107
+ 33671-3363,33671,839539.341,820612.792,3363,839521.209,820694.514,K,URBAN ROAD
108
+ 33681-3643,33681,839352.89,820107.684,3643,839537.601,819872.588,K,MAJOR ROUTE
109
+ 33691-33671,33691,839284.825,820586.955,33671,839539.341,820612.792,K,URBAN ROAD
110
+ 33701-3369,33701,839125.854,820681.893,3369,839269.874,820683.627,K,URBAN ROAD
111
+ 34211-33681,34211,838961.948,820481.832,33681,839352.89,820107.684,K,MAJOR ROUTE
112
+ 34212-34213,34212,839032.263,820399.522,34213,838795.019,820547.703,K,MAJOR ROUTE
113
+ 34212-33701,34212,839032.263,820399.522,33701,839125.854,820681.893,K,URBAN ROAD
114
+ 34213-34222,34213,838795.019,820547.703,34222,837777.736,820479.786,K,MAJOR ROUTE
115
+ 34214-34211,34214,838796.309,820560.136,34211,838961.948,820481.832,K,MAJOR ROUTE
116
+ 34221-34214,34221,837768.505,820483.126,34214,838796.309,820560.136,K,MAJOR ROUTE
117
+ 34222-888241,34222,837777.736,820479.786,888241,837675.498,820244.302,K,MAJOR ROUTE
118
+ 34371-88821,34371,837346.446,819464.44,88821,837650.4,820182.864,K,MAJOR ROUTE
119
+ 34372-3450,34372,837354.848,819455.342,3450,837010.873,818912.021,K,MAJOR ROUTE
120
+ 34481-34371,34481,837004.89,818935.405,34371,837346.446,819464.44,K,MAJOR ROUTE
121
+ 34501-34481,34501,836830.285,818807.735,34481,837004.89,818935.405,K,URBAN ROAD
122
+ 34502-88812,34502,836989.173,818891.055,88812,836747.719,818732.879,K,URBAN ROAD
123
+ 34551-34554,34551,836573.237,818583.439,34554,836683.275,818691.309,K,URBAN ROAD
124
+ 34552-88803,34552,836588.377,818563.869,88803,836458.943,818526.587,K,URBAN ROAD
125
+ 34554-34501,34554,836683.275,818691.309,34501,836830.285,818807.735,K,URBAN ROAD
126
+ 34554-888302,34554,836683.275,818691.309,888302,836661.066,818660.839,K,URBAN ROAD
127
+ 34781-36662,34781,836398.307,818543.592,36662,835997.232,818679.961,K,URBAN ROAD
128
+ 34783-88805,34783,836432.903,818548.685,88805,836463.722,818544.811,K,URBAN ROAD
129
+ 34982-36661,34982,835297.849,819038.497,36661,836000.337,818685.152,K,URBAN ROAD
130
+ 35071-3488,35071,836398.278,820324.278,3488,836967.085,820564.744,K,URBAN ROAD
131
+ 35071-3505,35071,836398.278,820324.278,3505,836334.997,820230.44,K,URBAN ROAD
132
+ 36511-46502,36511,841899.095,817854.503,46502,839931.964,816756.4,K,MAJOR ROUTE
133
+ 36661-34783,36661,836000.337,818685.152,34783,836432.903,818548.685,K,URBAN ROAD
134
+ 36662-3498,36662,835997.232,818679.961,3498,835269.643,819039.869,K,URBAN ROAD
135
+ 36821-3491,36821,835268.36,819250.732,3491,835320.029,818933.626,K,URBAN ROAD
136
+ 36821-34982,36821,835268.36,819250.732,34982,835297.849,819038.497,K,MAJOR ROUTE
137
+ 46312-46319,46312,836633.89,818130.091,46319,836650.693,817917.971,K,MAJOR ROUTE
138
+ 46319-46512,46319,836650.693,817917.971,46512,836893.978,816083.846,K,MAJOR ROUTE
139
+ 46322-36511,46322,842034.07,817933.434,36511,841899.095,817854.503,K,MAJOR ROUTE
140
+ 46332-46522,46332,833112.038,816768.056,46522,834395.219,818269.104,K,MAJOR ROUTE
141
+ 46478-46479,46478,836600.096,814778.361,46479,836538.931,814955.598,HK,MAJOR ROUTE
142
+ 46479-781,46479,836538.931,814955.598,781,836585.353,815155.819,HK,MAJOR ROUTE
143
+ 46488-762,46488,835804.774,815605.457,762,836029.641,815629.493,HK,MAJOR ROUTE
144
+ 46495-4649,46495,838048.299,817035.81,4649,838019.353,817012.047,HK,MAJOR ROUTE
145
+ 46497-877,46497,837992.283,816985.248,877,837626.399,816561.52,HK,MAJOR ROUTE
146
+ 46498-4649,46498,837982.489,816997.558,4649,838010.672,817025.768,HK,MAJOR ROUTE
147
+ 46499-811,46499,838040.608,817047.877,811,838249.981,817134.408,HK,MAJOR ROUTE
148
+ 50018-760,50018,835747.625,815588.61,760,835602.186,815600.695,HK,MAJOR ROUTE
149
+ 50019-50018,50019,835803.901,815589.008,50018,835747.625,815588.61,HK,MAJOR ROUTE
150
+ 50045-50049,50045,833566.611,816541.012,50049,833323.351,816607.564,HK,MAJOR ROUTE
151
+ 50048-893,50048,833272.432,816617.227,893,832738.968,816762.428,HK,MAJOR ROUTE
152
+ 50049-50048,50049,833323.351,816607.564,50048,833272.432,816617.227,HK,MAJOR ROUTE
153
+ 50058-50045,50058,833814.842,816458.312,50045,833566.611,816541.012,HK,MAJOR ROUTE
154
+ 50059-50058,50059,833862.7,816441.553,50058,833814.842,816458.312,HK,MAJOR ROUTE
155
+ 50076-7881,50076,836551.318,815844.419,7881,836592.753,815897.731,HK,MAJOR ROUTE
156
+ 50076-7883,50076,836551.318,815844.419,7883,836596.707,815890.625,HK,MAJOR ROUTE
157
+ 50078-50079,50078,836298.985,815671.02,50079,836349.024,815690.857,HK,MAJOR ROUTE
158
+ 50079-50076,50079,836349.205,815690.862,50076,836551.318,815844.419,HK,MAJOR ROUTE
159
+ 50098-50099,50098,836705.363,815357.127,50099,836708.043,815420.557,HK,MAJOR ROUTE
160
+ 50099-787,50099,836708.043,815420.557,787,836656.904,815755.248,HK,MAJOR ROUTE
161
+ 50106-8212,50106,839816.873,816917.947,8212,839401.015,817147.538,HK,MAJOR ROUTE
162
+ 50107-50109,50107,839823.434,816928.645,50109,839875.054,816894.55,HK,MAJOR ROUTE
163
+ 50108-50106,50108,839863.478,816886.033,50106,839816.873,816917.947,HK,MAJOR ROUTE
164
+ 50109-910,50109,839875.054,816894.55,910,840060.004,816792.63,HK,MAJOR ROUTE
165
+ 50119-930,50119,840850.736,816287.253,930,840495.49,816655.752,HK,MAJOR ROUTE
166
+ 50178-50019,50178,836297.644,815654.668,50019,835803.901,815589.008,HK,MAJOR ROUTE
167
+ 50179-50178,50179,836362.957,815673.882,50178,836297.644,815654.668,HK,MAJOR ROUTE
168
+ 78201-88820,78201,835418.623,817893.881,88820,835350.224,818078.55,K,URBAN ROAD
169
+ 88801-36821,88801,835232.243,819528.557,36821,835268.36,819250.732,K,MAJOR ROUTE
170
+ 88803-34781,88803,836458.943,818526.587,34781,836398.307,818543.592,K,URBAN ROAD
171
+ 88805-34551,88805,836463.722,818544.811,34551,836573.237,818583.439,K,URBAN ROAD
172
+ 88806-88807,88806,836421.253,820544.801,88807,836418.558,820503.762,K,URBAN ROAD
173
+ 88807-3506,88807,836418.558,820503.762,3506,836482.181,819918.657,K,URBAN ROAD
174
+ 88807-35071,88807,836418.558,820503.762,35071,836398.278,820324.278,K,URBAN ROAD
175
+ 88810-34212,88810,839314.866,820127.978,34212,839032.263,820399.522,K,MAJOR ROUTE
176
+ 88812-88827,88812,836747.719,818732.879,88827,836712.602,818694.748,K,URBAN ROAD
177
+ 88813-888131,88813,839988.562,819731.898,888131,840039.042,819687.873,K,MAJOR ROUTE
178
+ 88814-888141,88814,841123.667,818587.958,888141,841171.818,818619.044,K,MAJOR ROUTE
179
+ 88816-888161,88816,837353.75,820779.14,888161,837403.608,820809.184,K,URBAN ROAD
180
+ 88817-888171,88817,839074.865,821794.406,888171,839124.326,821765.411,K,MAJOR ROUTE
181
+ 88818-888181,88818,836976.843,818412.791,888181,837009.054,818365.583,K,URBAN ROAD
182
+ 88819-888191,88819,835948.908,817311.201,888191,835889.633,817306.075,K,URBAN ROAD
183
+ 88820-888201,88820,835350.224,818078.55,888201,835346.075,818138.176,K,URBAN ROAD
184
+ 88821-888211,88821,837650.4,820182.864,888211,837668.17,820248.692,K,MAJOR ROUTE
185
+ 88822-888221,88822,835098.871,819181.09,888221,835058.429,819127.715,K,URBAN ROAD
186
+ 88824-34372,88824,837662.065,820185.169,34372,837354.848,819455.342,K,MAJOR ROUTE
187
+ 88825-3484,88825,836306.663,819564.477,3484,836273.929,819369.685,K,MAJOR ROUTE
188
+ 88827-34552,88827,836712.602,818694.748,34552,836588.377,818563.869,K,URBAN ROAD
189
+ 88827-888303,88827,836712.602,818694.748,888303,836748.998,818560.257,K,URBAN ROAD
190
+ 888131-3639,888131,840039.042,819687.873,3639,840935.412,818601.61,K,MAJOR ROUTE
191
+ 888141-3637,888141,841171.818,818619.044,3637,841500.294,818838.784,K,MAJOR ROUTE
192
+ 888151-3633,888151,842053.671,818696.967,3633,842093.024,818642.008,K,MAJOR ROUTE
193
+ 888161-3419,888161,837403.608,820809.184,3419,837531.387,820885.152,K,URBAN ROAD
194
+ 888171-3644,888171,839124.326,821765.411,3644,839174.133,821171.9,K,MAJOR ROUTE
195
+ 888181-3715,888181,837009.054,818365.583,3715,837030.317,817998.638,K,URBAN ROAD
196
+ 888191-3459,888191,835889.633,817306.075,3459,835807.883,817301.615,K,URBAN ROAD
197
+ 888201-3470,888201,835346.075,818138.176,3470,834889.426,818187.326,K,URBAN ROAD
198
+ 888211-34221,888211,837668.17,820248.692,34221,837768.505,820483.126,K,MAJOR ROUTE
199
+ 888221-3010,888221,835058.429,819127.715,3010,835020.456,819072.594,K,URBAN ROAD
200
+ 888231-3503,888231,836009.355,819775.102,3503,835971.906,819718.872,K,URBAN ROAD
201
+ 888241-88824,888241,837675.498,820244.302,88824,837662.065,820185.169,K,MAJOR ROUTE
202
+ 888301-3692,888301,834711.437,818893.39,3692,834538.393,818512.558,K,MAJOR ROUTE
203
+ 888302-888303,888302,836661.066,818660.839,888303,836748.998,818560.257,K,MAJOR ROUTE
204
+ 888303-3453,888303,836748.998,818560.257,3453,836694.153,818344.939,K,MAJOR ROUTE
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'hk_geo/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "hk_geo"
8
+ spec.version = HkGeo::VERSION
9
+ spec.authors = ["Francis Chong"]
10
+ spec.email = ["francis@ignition.hk"]
11
+ spec.homepage = "https://github.com/siuying/hk_geo"
12
+ spec.summary = %q{geolocation transormation api for hk.}
13
+ spec.description = %q{geolocation transormation api for hk.}
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_dependency "mechanize"
24
+ spec.add_dependency "rest-client"
25
+ spec.add_dependency "json"
26
+ spec.add_dependency "nayutaya-googlemaps-polyline"
27
+ end
@@ -1,6 +1,3 @@
1
- require 'hk_geo/converter'
2
- require 'hk_geo/route_finder'
3
-
4
- module HkGeo
5
- VERSION = "0.2.0"
6
- end
1
+ require_relative "./hk_geo/version"
2
+ require_relative "./hk_geo/converter"
3
+ require_relative "./hk_geo/route_finder"
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'mechanize'
3
2
 
4
3
  module HkGeo
@@ -0,0 +1,14 @@
1
+ require 'rest-client'
2
+ require 'json'
3
+ require "googlemaps_polyline/core"
4
+
5
+ module HkGeo
6
+ class RouteFinder
7
+ def self.route(from, to)
8
+ response = RestClient.get("http://maps.googleapis.com/maps/api/directions/json?origin=#{from}&destination=#{to}&sensor=false")
9
+ routes = JSON(response.to_str)
10
+ overview_polyline = routes["routes"].first["overview_polyline"]
11
+ GoogleMapsPolyline.decode_polyline(overview_polyline["points"], overview_polyline["levels"])
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module HkGeo
2
+ VERSION = "0.3.0"
3
+ end
@@ -0,0 +1,41 @@
1
+ desc "find route"
2
+ task :route do
3
+ # process each line of data.csv
4
+ results = JSON(open("output/route.json").read) rescue {}
5
+ csv = open("data/data.csv").read
6
+
7
+ csv.each_line do |line|
8
+ name, point1, coord1e, coord1n, point2, coord2e, coord2n, region, type = line.split(",")
9
+
10
+ begin
11
+ unless results[name]
12
+ puts "find path: #{name}"
13
+
14
+ # convert HK80
15
+ latlng1 = HkGeo::Converter.convert(coord1n, coord1e) rescue nil
16
+ latlng2 = HkGeo::Converter.convert(coord2n, coord2e) rescue nil
17
+
18
+ # find route
19
+ route = HkGeo::RouteFinder.route(latlng1.join(","), latlng2.join(",")) rescue nil
20
+
21
+ # if everyting is OK, write
22
+ if latlng1 && latlng2 && route
23
+ results[name] = {:name => name,
24
+ :from => point1, :from_e => coord1e, :from_n => coord1n, :from_converted => latlng1,
25
+ :to => point2, :to_e => coord2e, :to_n => coord2n, :to_converted => latlng2,
26
+ :region => region, :type => type.strip, :route => route,}
27
+ File.open("output/route.json", 'w') {|f| f.write(results.to_json) }
28
+ else
29
+ puts "ERROR: failed finding route #{name}"
30
+ end
31
+ sleep 1
32
+ end
33
+
34
+ rescue StandardError => e
35
+ puts "ERROR: error loading route #{name}, #{e.inspect}"
36
+ sleep 5
37
+ retry
38
+
39
+ end
40
+ end
41
+ end
@@ -0,0 +1 @@
1
+ {"88824-34372":{"type":"MAJOR ROUTE","from_e":"837662.065","from_n":"820185.169","to":"34372","from_converted":["22.320674397","114.190405243"],"region":"K","to_e":"837354.848","from":"88824","to_n":"819455.342","name":"88824-34372","route":[[22.32068,114.19039,3],[22.32012,114.19016,0],[22.31915,114.18946,0],[22.31588,114.18781,0],[22.31549,114.18768,0],[22.31409,114.18741,3]],"to_converted":["22.314083846","114.187422880"]},"88803-34781":{"type":"URBAN ROAD","from_e":"836458.943","from_n":"818526.587","to":"34781","from_converted":["22.305696962","114.178727470"],"region":"K","to_e":"836398.307","from":"88803","to_n":"818543.592","name":"88803-34781","route":[[22.30567,114.17872,3],[22.30585,114.17814,3]],"to_converted":["22.305850533","114.178138998"]},"36511-46502":{"type":"MAJOR ROUTE","from_e":"841899.095","from_n":"817854.503","to":"46502","from_converted":["22.299618424","114.231521891"],"region":"K","to_e":"839931.964","from":"36511","to_n":"816756.4","name":"36511-46502","route":[[22.29963,114.23152,3],[22.29106,114.21504,0],[22.2903,114.21348,0],[22.28971,114.21243,3]],"to_converted":["22.289707185","114.212429161"]},"930-9101":{"type":"MAJOR ROUTE","from_e":"840495.49","from_n":"816655.752","to":"9101","from_converted":["22.288796979","114.217897304"],"region":"HK","to_e":"840052.115","from":"930","to_n":"816777.46","name":"930-9101","route":[[22.28877,114.21789,3],[22.28913,114.21574,0],[22.28944,114.21472,0],[22.28989,114.21359,3]],"to_converted":["22.289897110","114.213595146"]},"3489-88816":{"type":"URBAN ROAD","from_e":"837168.318","from_n":"820663.995","to":"88816","from_converted":["22.324998809","114.185613177"],"region":"K","to_e":"837353.75","from":"3489","to_n":"820779.14","name":"3489-88816","route":[[22.325,114.18563,3],[22.32497,114.18564,0],[22.32603,114.18742,3]],"to_converted":["22.326038529","114.187413125"]},"888151-3633":{"type":"MAJOR ROUTE","from_e":"842053.671","from_n":"818696.967","to":"3633","from_converted":["22.307225874","114.233025033"],"region":"K","to_e":"842093.024","from":"888151","to_n":"818642.008","name":"888151-3633","route":[[22.30722,114.23302,3],[22.30674,114.23343,3]],"to_converted":["22.306729428","114.233406758"]},"50076-7883":{"type":"MAJOR ROUTE","from_e":"836551.318","from_n":"815844.419","to":"7883","from_converted":["22.281475300","114.179623489"],"region":"HK","to_e":"836596.707","from":"50076","to_n":"815890.625","name":"50076-7883","route":[[22.28147,114.17963,3],[22.28173,114.17981,0],[22.28192,114.18005,3]],"to_converted":["22.281892562","114.180063924"]},"46488-762":{"type":"MAJOR ROUTE","from_e":"835804.774","from_n":"815605.457","to":"762","from_converted":["22.279317284","114.172379580"],"region":"HK","to_e":"836029.641","from":"46488","to_n":"815629.493","name":"46488-762","route":[[22.27929,114.17238,3],[22.27938,114.17364,0],[22.27951,114.17412,1],[22.27977,114.17436,0],[22.28066,114.17431,1],[22.28067,114.1745,0],[22.27953,114.17459,3]],"to_converted":["22.279534390","114.174561507"]},"3643-88813":{"type":"MAJOR ROUTE","from_e":"839537.601","from_n":"819872.588","to":"88813","from_converted":["22.317849059","114.208608662"],"region":"K","to_e":"839988.562","from":"3643","to_n":"819731.898","name":"3643-88813","route":[[22.31785,114.20861,3],[22.3175,114.20915,0],[22.3172,114.21,0],[22.31712,114.21045,0],[22.31708,114.21176,0],[22.31682,114.21259,0],[22.31658,114.21299,3]],"to_converted":["22.316577628","114.212985299"]},"877-46498":{"type":"MAJOR ROUTE","from_e":"837616.85","from_n":"816570.66","to":"46498","from_converted":["22.288033209","114.189963331"],"region":"HK","to_e":"837982.489","from":"877","to_n":"816997.558","name":"877-46498","route":[[22.28803,114.18997,3],[22.29186,114.19354,3]],"to_converted":["22.291888040","114.193511877"]},"8978-896":{"type":"URBAN ROAD","from_e":"834523.708","from_n":"815916.074","to":"896","from_converted":["22.282121537","114.159948804"],"region":"HK","to_e":"834264.546","from":"8978","to_n":"816083.739","name":"8978-896","route":[[22.28213,114.15995,3],[22.28252,114.15888,0],[22.28274,114.15841,0],[22.2831,114.15794,0],[22.28363,114.15743,3]],"to_converted":["22.283635378","114.157433844"]},"888303-3453":{"type":"MAJOR ROUTE","from_e":"836748.998","from_n":"818560.257","to":"3453","from_converted":["22.306000965","114.181542470"],"region":"K","to_e":"836694.153","from":"888303","to_n":"818344.939","name":"888303-3453","route":[[22.306,114.18153,3],[22.30566,114.18161,0],[22.3053,114.18158,0],[22.30404,114.18104,3]],"to_converted":["22.304056527","114.181010139"]},"50099-787":{"type":"MAJOR ROUTE","from_e":"836708.043","from_n":"815420.557","to":"787","from_converted":["22.277647523","114.181144129"],"region":"HK","to_e":"836656.904","from":"50099","to_n":"815755.248","name":"50099-787","route":[[22.27765,114.18116,3],[22.27918,114.18123,0],[22.27949,114.18118,0],[22.28068,114.18067,3]],"to_converted":["22.280670009","114.180648005"]},"46499-811":{"type":"MAJOR ROUTE","from_e":"838040.608","from_n":"817047.877","to":"811","from_converted":["22.292342393","114.194075924"],"region":"HK","to_e":"838249.981","from":"46499","to_n":"817134.408","name":"46499-811","route":[[22.29231,114.1941,3],[22.29255,114.19448,0],[22.29278,114.195,0],[22.2931,114.19611,3]],"to_converted":["22.293123593","114.196107807"]},"787-788":{"route":[[22.28068,114.18067,3],[22.28136,114.18005,0],[22.28151,114.18003,0],[22.28176,114.18016,3]],"name":"787-788","region":"HK","to_n":"815875.71","from":"787","to_e":"836606.459","to_converted":["22.281757868","114.180158549"],"to":"788","from_n":"815755.248","type":"MAJOR ROUTE","from_converted":["22.280670009","114.180648005"],"from_e":"836656.904"},"8979-8978":{"type":"URBAN ROAD","from_e":"834575.127","from_n":"815899.799","to":"8978","from_converted":["22.281974615","114.160447760"],"region":"HK","to_e":"834523.708","from":"8979","to_n":"815916.074","name":"8979-8978","route":[[22.28199,114.16045,3],[22.28213,114.15995,3]],"to_converted":["22.282121537","114.159948804"]},"3502-3500":{"type":"URBAN ROAD","from_e":"835629.414","from_n":"819329.703","to":"3500","from_converted":["22.312949480","114.170676555"],"region":"K","to_e":"835453.715","from":"3502","to_n":"819296.604","name":"3502-3500","route":[[22.31293,114.17068,3],[22.31263,114.16898,3]],"to_converted":["22.312650502","114.168971321"]},"4644-88801":{"type":"MAJOR ROUTE","from_e":"835228.606","from_n":"819561.765","to":"88801","from_converted":["22.315044945","114.166786354"],"region":"K","to_e":"835232.243","from":"4644","to_n":"819528.557","name":"4644-88801","route":[[22.31505,114.16679,3],[22.31475,114.16683,3]],"to_converted":["22.314745059","114.166821675"]},"7881-870":{"type":"MAJOR ROUTE","from_e":"836592.753","from_n":"815897.731","to":"870","from_converted":["22.281956734","114.180025559"],"region":"HK","to_e":"836803.159","from":"7881","to_n":"815997.652","name":"7881-870","route":[[22.28192,114.18005,3],[22.28216,114.18063,0],[22.28219,114.18097,0],[22.28189,114.18217,0],[22.28191,114.18246,1],[22.28247,114.18405,0],[22.28357,114.18557,0],[22.28361,114.18573,0],[22.28355,114.18594,0],[22.28329,114.18617,1],[22.28299,114.18617,0],[22.28283,114.18604,0],[22.282,114.18335,0],[22.28149,114.18199,0],[22.28137,114.1818,0],[22.28095,114.18079,1],[22.28076,114.18074,0],[22.28046,114.18082,0],[22.27947,114.18124,0],[22.27921,114.18129,0],[22.27749,114.18121,0],[22.27709,114.18127,0],[22.27667,114.18123,1],[22.27644,114.18117,0],[22.27602,114.18093,0],[22.2753,114.18025,0],[22.27461,114.17971,1],[22.27467,114.17943,0],[22.27498,114.17962,0],[22.27608,114.18065,0],[22.27668,114.1811,0],[22.27686,114.18113,1],[22.27918,114.18123,0],[22.27949,114.18118,1],[22.28076,114.18063,0],[22.28131,114.18008,0],[22.28144,114.18003,0],[22.28158,114.18005,1],[22.2818,114.1802,0],[22.28187,114.18036,0],[22.28183,114.18101,0],[22.28194,114.18132,0],[22.28237,114.18161,0],[22.28284,114.18209,3]],"to_converted":["22.282859031","114.182067242"]},"7908-7909":{"type":"URBAN ROAD","from_e":"836950.758","from_n":"815938.449","to":"7909","from_converted":["22.282324338","114.183499436"],"region":"HK","to_e":"837000.797","from":"7908","to_n":"815961.774","name":"7908-7909","route":[[22.28233,114.18347,3],[22.28254,114.18398,3]],"to_converted":["22.282534957","114.183984995"]},"7918-7919":{"type":"URBAN ROAD","from_e":"837006.391","from_n":"815940.388","to":"7919","from_converted":["22.282341826","114.184039266"],"region":"HK","to_e":"836956.857","from":"7918","to_n":"815917.381","name":"7918-7919","route":[[22.28235,114.18404,3],[22.28215,114.18355,3]],"to_converted":["22.282134078","114.183558608"]},"88814-888141":{"type":"MAJOR ROUTE","from_e":"841123.667","from_n":"818587.958","to":"888141","from_converted":["22.306244332","114.223998898"],"region":"K","to_e":"841171.818","from":"88814","to_n":"818619.044","name":"88814-888141","route":[[22.30624,114.224,3],[22.30636,114.22428,0],[22.30651,114.22448,3]],"to_converted":["22.306524921","114.224466301"]},"3483-88825":{"type":"MAJOR ROUTE","from_e":"836440.024","from_n":"819826.139","to":"88825","from_converted":["22.317432702","114.178544004"],"region":"K","to_e":"836306.663","from":"3483","to_n":"819564.477","name":"3483-88825","route":[[22.31742,114.17858,3],[22.31649,114.17831,0],[22.31626,114.17817,0],[22.31571,114.17761,0],[22.31541,114.17744,0],[22.31506,114.17732,3]],"to_converted":["22.315069746","114.177249617"]},"3370-34211":{"type":"URBAN ROAD","from_e":"839125.949","from_n":"820671.968","to":"34211","from_converted":["22.325068667","114.204614654"],"region":"K","to_e":"838961.948","from":"3370","to_n":"820481.832","name":"3370-34211","route":[[22.32507,114.20461,3],[22.32501,114.204,0],[22.32494,114.20377,0],[22.32472,114.20338,0],[22.32435,114.20295,1],[22.32401,114.20274,0],[22.32387,114.20274,0],[22.32364,114.20281,0],[22.32335,114.20303,3]],"to_converted":["22.323351892","114.203022481"]},"888211-34221":{"type":"MAJOR ROUTE","from_e":"837668.17","from_n":"820248.692","to":"34221","from_converted":["22.321248043","114.190464554"],"region":"K","to_e":"837768.505","from":"888211","to_n":"820483.126","name":"888211-34221","route":[[22.32125,114.19045,3],[22.32177,114.19062,0],[22.32337,114.19143,3]],"to_converted":["22.323365036","114.191438636"]},"34502-88812":{"type":"URBAN ROAD","from_e":"836989.173","from_n":"818891.055","to":"88812","from_converted":["22.308988187","114.183873529"],"region":"K","to_e":"836747.719","from":"34502","to_n":"818732.879","name":"34502-88812","route":[[22.30899,114.18387,3],[22.30809,114.18236,0],[22.30752,114.18157,3]],"to_converted":["22.307559847","114.181530110"]},"3644-3690":{"type":"MAJOR ROUTE","from_e":"839174.133","from_n":"821171.9","to":"3690","from_converted":["22.329583265","114.205083254"],"region":"K","to_e":"839111.955","from":"3644","to_n":"820458.628","name":"3644-3690","route":[[22.32958,114.2051,3],[22.32864,114.20531,0],[22.32815,114.20534,0],[22.32782,114.20528,0],[22.32739,114.20512,0],[22.32667,114.20471,0],[22.32566,114.20441,0],[22.32468,114.20432,0],[22.32314,114.2045,3]],"to_converted":["22.323142105","114.204478444"]},"3505-3504":{"type":"URBAN ROAD","from_e":"836334.997","from_n":"820230.44","to":"3504","from_converted":["22.321083788","114.177524647"],"region":"K","to_e":"836128.396","from":"3505","to_n":"819945.362","name":"3505-3504","route":[[22.32108,114.1775,3],[22.31849,114.17555,3]],"to_converted":["22.318509361","114.175519384"]},"88827-888303":{"type":"URBAN ROAD","from_e":"836712.602","from_n":"818694.748","to":"888303","from_converted":["22.307215510","114.181189283"],"region":"K","to_e":"836748.998","from":"88827","to_n":"818560.257","name":"88827-888303","route":[[22.30721,114.18124,3],[22.30707,114.18116,0],[22.30671,114.18119,0],[22.30629,114.18144,0],[22.306,114.18153,3]],"to_converted":["22.306000965","114.181542470"]},"88813-888131":{"type":"MAJOR ROUTE","from_e":"839988.562","from_n":"819731.898","to":"888131","from_converted":["22.316577628","114.212985299"],"region":"K","to_e":"840039.042","from":"88813","to_n":"819687.873","name":"88813-888131","route":[[22.31658,114.21299,3],[22.31618,114.21348,3]],"to_converted":["22.316179946","114.213475143"]},"35071-3488":{"type":"URBAN ROAD","from_e":"836398.278","from_n":"820324.278","to":"3488","from_converted":["22.321931197","114.178138866"],"region":"K","to_e":"836967.085","from":"35071","to_n":"820564.744","name":"35071-3488","route":[[22.32194,114.17808,3],[22.32166,114.17816,0],[22.32407,114.18368,3]],"to_converted":["22.324102608","114.183659894"]},"3506-3483":{"type":"MAJOR ROUTE","from_e":"836482.181","from_n":"819918.657","to":"3483","from_converted":["22.318268190","114.178953185"],"region":"K","to_e":"836440.024","from":"3506","to_n":"819826.139","name":"3506-3483","route":[[22.31825,114.17899,3],[22.31742,114.17858,3]],"to_converted":["22.317432702","114.178544004"]},"50178-50019":{"type":"MAJOR ROUTE","from_e":"836297.644","from_n":"815654.668","to":"50019","from_converted":["22.279761752","114.177161998"],"region":"HK","to_e":"835803.901","from":"50178","to_n":"815589.008","name":"50178-50019","route":[[22.27976,114.17716,3],[22.27959,114.17652,0],[22.27919,114.17237,3]],"to_converted":["22.279168739","114.172371114"]},"3450-34502":{"type":"URBAN ROAD","from_e":"837010.873","from_n":"818912.021","to":"34502","from_converted":["22.309177514","114.184084142"],"region":"K","to_e":"836989.173","from":"3450","to_n":"818891.055","name":"3450-34502","route":[[22.30918,114.18408,3],[22.30899,114.18387,3]],"to_converted":["22.308988187","114.183873529"]},"3480-888302":{"type":"MAJOR ROUTE","from_e":"836458.317","from_n":"818948.326","to":"888302","from_converted":["22.309505521","114.178721446"],"region":"K","to_e":"836661.066","from":"3480","to_n":"818660.839","name":"3480-888302","route":[[22.30952,114.17874,3],[22.30859,114.1793,0],[22.30762,114.17996,0],[22.30731,114.1802,0],[22.30692,114.1807,3]],"to_converted":["22.306909304","114.180689111"]},"3459-3615":{"type":"URBAN ROAD","from_e":"835807.883","from_n":"817301.615","to":"3615","from_converted":["22.294634661","114.172409266"],"region":"K","to_e":"835632.686","from":"3459","to_n":"817301.908","name":"3459-3615","route":[[22.2947,114.17241,3],[22.29458,114.17071,3]],"to_converted":["22.294637252","114.170709109"]},"3402-8979":{"type":"URBAN ROAD","from_e":"834754.135","from_n":"815848.947","to":"8979","from_converted":["22.281515555","114.162184791"],"region":"HK","to_e":"834575.127","from":"3402","to_n":"815899.799","name":"3402-8979","route":[[22.2815,114.16218,3],[22.28199,114.16045,3]],"to_converted":["22.281974615","114.160447760"]},"7883-7891":{"type":"MAJOR ROUTE","from_e":"836596.707","from_n":"815890.625","to":"7891","from_converted":["22.281892562","114.180063924"],"region":"HK","to_e":"836701.913","from":"7883","to_n":"815918.062","name":"7883-7891","route":[[22.28192,114.18005,3],[22.28216,114.18063,0],[22.28219,114.18097,0],[22.28189,114.18217,0],[22.28191,114.18246,1],[22.28247,114.18405,0],[22.28357,114.18557,0],[22.28361,114.18573,0],[22.28355,114.18594,0],[22.28329,114.18617,1],[22.28299,114.18617,0],[22.28283,114.18604,0],[22.282,114.18335,0],[22.28149,114.18199,0],[22.28137,114.1818,0],[22.28095,114.18079,1],[22.28076,114.18074,0],[22.28046,114.18082,0],[22.27947,114.18124,0],[22.27921,114.18129,0],[22.27749,114.18121,0],[22.27709,114.18127,0],[22.27667,114.18123,1],[22.27644,114.18117,0],[22.27602,114.18093,0],[22.2753,114.18025,0],[22.27461,114.17971,1],[22.27467,114.17943,0],[22.27498,114.17962,0],[22.27608,114.18065,0],[22.27668,114.1811,1],[22.27918,114.18123,0],[22.27949,114.18118,1],[22.28076,114.18063,0],[22.28124,114.18013,0],[22.28144,114.18003,1],[22.28171,114.18012,0],[22.28194,114.18039,0],[22.28203,114.18059,0],[22.28213,114.18109,3]],"to_converted":["22.282140312","114.181084785"]},"46319-46512":{"type":"MAJOR ROUTE","from_e":"836650.693","from_n":"817917.971","to":"46512","from_converted":["22.300200754","114.180588261"],"region":"K","to_e":"836893.978","from":"46319","to_n":"816083.846","name":"46319-46512","route":[[22.3002,114.18061,3],[22.28468,114.18323,0],[22.28445,114.18326,0],[22.28409,114.1832,0],[22.28362,114.18298,3]],"to_converted":["22.283637387","114.182948533"]},"793-877":{"route":[[22.28444,114.18814,3],[22.2846,114.18849,0],[22.28476,114.18869,0],[22.28508,114.18897,0],[22.28537,114.18912,0],[22.28701,114.18933,0],[22.28756,114.18961,0],[22.28803,114.18997,3]],"name":"793-877","region":"HK","to_n":"816570.66","from":"793","to_e":"837616.85","to_converted":["22.288033209","114.189963331"],"to":"877","from_n":"816174.589","type":"MAJOR ROUTE","from_converted":["22.284456576","114.188132383"],"from_e":"837428.196"},"3681-3395":{"type":"URBAN ROAD","from_e":"837968.472","from_n":"821192.37","to":"3395","from_converted":["22.329769738","114.193380319"],"region":"K","to_e":"838185.484","from":"3681","to_n":"821426.384","name":"3681-3395","route":[[22.32976,114.19339,3],[22.33188,114.19549,3]],"to_converted":["22.331882792","114.195487068"]},"3615-3460":{"type":"URBAN ROAD","from_e":"835632.686","from_n":"817301.908","to":"3460","from_converted":["22.294637252","114.170709109"],"region":"K","to_e":"835579.522","from":"3615","to_n":"817480.928","name":"3615-3460","route":[[22.29462,114.17065,3],[22.29624,114.17016,0],[22.29624,114.17019,3]],"to_converted":["22.296253893","114.170193116"]},"3491-3010":{"type":"URBAN ROAD","from_e":"835320.029","from_n":"818933.626","to":"3010","from_converted":["22.309372524","114.167674045"],"region":"K","to_e":"835020.456","from":"3491","to_n":"819072.594","name":"3491-3010","route":[[22.30937,114.16768,3],[22.30917,114.16765,0],[22.30895,114.16721,0],[22.30885,114.16677,0],[22.30884,114.16639,0],[22.30902,114.16525,1],[22.30912,114.16511,0],[22.30988,114.16511,0],[22.31049,114.16501,0],[22.31065,114.16478,3]],"to_converted":["22.310627299","114.164766499"]},"870-4651":{"type":"MAJOR ROUTE","from_e":"836803.159","from_n":"815997.652","to":"4651","from_converted":["22.282859031","114.182067242"],"region":"HK","to_e":"836884.007","from":"870","to_n":"816087.665","name":"870-4651","route":[[22.28284,114.18209,3],[22.28365,114.18289,3]],"to_converted":["22.283671879","114.182851781"]},"4650-3651":{"type":"MAJOR ROUTE","from_e":"839919.319","from_n":"816768.747","to":"3651","from_converted":["22.289818713","114.212306484"],"region":"HK","to_e":"841880.892","from":"4650","to_n":"817878.688","name":"4650-3651","route":[[22.28978,114.21234,3],[22.29972,114.23142,3]],"to_converted":["22.299836889","114.231345323"]},"786-7861":{"route":[[22.28154,114.18198,3],[22.28129,114.18119,3]],"name":"786-7861","region":"HK","to_n":"815819.064","from":"786","to_e":"836714.038","to_converted":["22.281246294","114.181202411"],"to":"7861","from_n":"815852.754","type":"URBAN ROAD","from_converted":["22.281550513","114.181974177"],"from_e":"836793.573"},"88816-888161":{"type":"URBAN ROAD","from_e":"837353.75","from_n":"820779.14","to":"888161","from_converted":["22.326038529","114.187413125"],"region":"K","to_e":"837403.608","from":"88816","to_n":"820809.184","name":"88816-888161","route":[[22.32603,114.18742,3],[22.32632,114.18789,3]],"to_converted":["22.326309812","114.187897089"]},"88812-88827":{"type":"URBAN ROAD","from_e":"836747.719","from_n":"818732.879","to":"88827","from_converted":["22.307559847","114.181530110"],"region":"K","to_e":"836712.602","from":"88812","to_n":"818694.748","name":"88812-88827","route":[[22.30752,114.18157,3],[22.30721,114.18124,3]],"to_converted":["22.307215510","114.181189283"]},"88807-35071":{"type":"URBAN ROAD","from_e":"836418.558","from_n":"820503.762","to":"35071","from_converted":["22.323552042","114.178335724"],"region":"K","to_e":"836398.278","from":"88807","to_n":"820324.278","name":"88807-35071","route":[[22.32355,114.17833,3],[22.32322,114.17835,0],[22.32275,114.17829,0],[22.32194,114.17808,3]],"to_converted":["22.321931197","114.178138866"]},"88801-36821":{"type":"MAJOR ROUTE","from_e":"835232.243","from_n":"819528.557","to":"36821","from_converted":["22.314745059","114.166821675"],"region":"K","to_e":"835268.36","from":"88801","to_n":"819250.732","name":"88801-36821","route":[[22.31475,114.16683,3],[22.31224,114.16721,3]],"to_converted":["22.312236154","114.167172386"]},"50108-50106":{"type":"MAJOR ROUTE","from_e":"839863.478","from_n":"816886.033","to":"50106","from_converted":["22.290877996","114.211764870"],"region":"HK","to_e":"839816.873","from":"50108","to_n":"816917.947","name":"50108-50106","route":[[22.29086,114.21175,3],[22.29113,114.21129,3]],"to_converted":["22.291166297","114.211312686"]},"34552-88803":{"type":"URBAN ROAD","from_e":"836588.377","from_n":"818563.869","to":"88803","from_converted":["22.306033621","114.179983637"],"region":"K","to_e":"836458.943","from":"34552","to_n":"818526.587","name":"34552-88803","route":[[22.30601,114.18,3],[22.3057,114.17941,0],[22.30564,114.17914,0],[22.30567,114.17872,3]],"to_converted":["22.305696962","114.178727470"]},"3480-88818":{"type":"URBAN ROAD","from_e":"836458.317","from_n":"818948.326","to":"88818","from_converted":["22.309505521","114.178721446"],"region":"K","to_e":"836976.843","from":"3480","to_n":"818412.791","name":"3480-88818","route":[[22.30952,114.17874,3],[22.30916,114.17897,0],[22.30855,114.17954,0],[22.30737,114.18086,0],[22.3069,114.18126,0],[22.30624,114.18173,0],[22.30561,114.18245,0],[22.3049,114.18351,0],[22.30468,114.18377,3]],"to_converted":["22.304669178","114.183753650"]},"877-793":{"type":"MAJOR ROUTE","from_e":"837626.399","from_n":"816561.52","to":"793","from_converted":["22.287950661","114.190055985"],"region":"HK","to_e":"837434.612","from":"877","to_n":"816161.378","name":"877-793","route":[[22.28795,114.19005,3],[22.28743,114.18967,0],[22.28679,114.18938,0],[22.28559,114.18928,0],[22.28535,114.18922,0],[22.28506,114.18907,0],[22.28457,114.18859,0],[22.28438,114.18817,3]],"to_converted":["22.284337268","114.188194631"]},"888221-3010":{"type":"URBAN ROAD","from_e":"835058.429","from_n":"819127.715","to":"3010","from_converted":["22.311125102","114.165134999"],"region":"K","to_e":"835020.456","from":"888221","to_n":"819072.594","name":"888221-3010","route":[[22.31113,114.16513,3],[22.31069,114.16487,0],[22.31065,114.16478,3]],"to_converted":["22.310627299","114.164766499"]},"50107-50109":{"type":"MAJOR ROUTE","from_e":"839823.434","from_n":"816928.645","to":"50109","from_converted":["22.291262893","114.211376378"],"region":"HK","to_e":"839875.054","from":"50107","to_n":"816894.55","name":"50107-50109","route":[[22.29125,114.21136,3],[22.29093,114.21186,3]],"to_converted":["22.290954886","114.211877223"]},"46332-46522":{"type":"MAJOR ROUTE","from_e":"833112.038","from_n":"816768.056","to":"46522","from_converted":["22.289813470","114.146249142"],"region":"K","to_e":"834395.219","from":"46332","to_n":"818269.104","name":"46332-46522","route":[[22.28989,114.14615,3],[22.28963,114.14578,0],[22.28947,114.14539,0],[22.28937,114.14497,0],[22.28933,114.14442,1],[22.28934,114.14351,0],[22.28944,114.14288,0],[22.28982,114.14199,0],[22.28992,114.14136,1],[22.2898,114.14096,0],[22.28964,114.14071,0],[22.28916,114.14019,0],[22.28883,114.13998,1],[22.28875,114.14001,0],[22.28871,114.14012,0],[22.28888,114.14074,1],[22.28903,114.14078,0],[22.28931,114.14052,0],[22.28949,114.14044,0],[22.28985,114.14047,0],[22.29016,114.14059,0],[22.29032,114.14077,0],[22.29044,114.14107,1],[22.29045,114.14144,0],[22.29036,114.14174,0],[22.28965,114.14286,0],[22.28945,114.14344,1],[22.28942,114.14457,0],[22.2895,114.14504,0],[22.28968,114.14553,0],[22.28992,114.14591,1],[22.29029,114.14638,0],[22.29095,114.14704,0],[22.29731,114.15308,1],[22.30114,114.15649,0],[22.30268,114.15762,0],[22.30341,114.158,0],[22.3054,114.15972,1],[22.3069,114.1605,0],[22.30817,114.16097,1],[22.30877,114.16104,0],[22.30953,114.16094,0],[22.30996,114.16077,0],[22.31102,114.16052,0],[22.31136,114.16049,0],[22.31181,114.16061,0],[22.31218,114.16091,1],[22.31234,114.16115,0],[22.31247,114.16154,0],[22.31249,114.16185,1],[22.31219,114.16255,0],[22.31196,114.16283,0],[22.31166,114.16306,1],[22.31087,114.16332,0],[22.30955,114.16355,0],[22.3083,114.16399,0],[22.30806,114.16404,0],[22.30664,114.16412,1],[22.30599,114.16688,1],[22.3086,114.16761,0],[22.30917,114.16765,2],[22.30895,114.16721,0],[22.30884,114.16655,0],[22.30902,114.16525,0],[22.30907,114.16514,1],[22.30988,114.16511,0],[22.31049,114.16501,0],[22.31065,114.16478,1],[22.31042,114.16365,0],[22.30998,114.1627,1],[22.30945,114.16205,0],[22.30885,114.16165,0],[22.3052,114.15998,0],[22.30328,114.1589,3]],"to_converted":["22.303370731","114.158699284"]},"34214-34211":{"type":"MAJOR ROUTE","from_e":"838796.309","from_n":"820560.136","to":"34211","from_converted":["22.324059275","114.201414873"],"region":"K","to_e":"838961.948","from":"34214","to_n":"820481.832","name":"34214-34211","route":[[22.32408,114.20142,3],[22.32396,114.2019,0],[22.32335,114.20303,3]],"to_converted":["22.323351892","114.203022481"]},"793-7918":{"route":[[22.28438,114.18817,3],[22.2842,114.18764,0],[22.28388,114.18631,0],[22.28374,114.18598,0],[22.28359,114.18577,0],[22.28312,114.18537,1],[22.28296,114.18536,0],[22.2817,114.18583,1],[22.28189,114.18644,1],[22.28318,114.18598,0],[22.28337,114.18589,0],[22.28348,114.18575,1],[22.28344,114.1855,0],[22.28272,114.18459,0],[22.28235,114.18404,3]],"name":"793-7918","region":"HK","to_n":"815940.388","from":"793","to_e":"837006.391","to_converted":["22.282341826","114.184039266"],"to":"7918","from_n":"816161.378","type":"URBAN ROAD","from_converted":["22.284337268","114.188194631"],"from_e":"837434.612"},"811-818":{"type":"MAJOR ROUTE","from_e":"838249.981","from_n":"817134.408","to":"818","from_converted":["22.293123593","114.196107807"],"region":"HK","to_e":"838881.248","from":"811","to_n":"817243.884","name":"811-818","route":[[22.2931,114.19611,3],[22.2935,114.19818,0],[22.2936,114.1999,0],[22.29369,114.20048,0],[22.29408,114.20224,3]],"to_converted":["22.294111386","114.202233897"]},"5011-50119":{"type":"MAJOR ROUTE","from_e":"840851.058","from_n":"816261.521","to":"50119","from_converted":["22.285235916","114.221346556"],"region":"HK","to_e":"840850.736","from":"5011","to_n":"816287.253","name":"5011-50119","route":[[22.28524,114.22135,3],[22.28547,114.22134,3]],"to_converted":["22.285468293","114.221343505"]},"3690-3643":{"type":"MAJOR ROUTE","from_e":"839111.955","from_n":"820458.628","to":"3643","from_converted":["22.323142105","114.204478444"],"region":"K","to_e":"839537.601","from":"3690","to_n":"819872.588","name":"3690-3643","route":[[22.32314,114.2045,3],[22.32242,114.2046,0],[22.32204,114.20473,0],[22.32174,114.20493,1],[22.32009,114.20661,0],[22.31825,114.20816,0],[22.31785,114.20861,3]],"to_converted":["22.317849059","114.208608662"]},"930-931":{"type":"MAJOR ROUTE","from_e":"840495.49","from_n":"816655.752","to":"931","from_converted":["22.288796979","114.217897304"],"region":"HK","to_e":"839976.076","from":"930","to_n":"816575.425","name":"930-931","route":[[22.28883,114.2179,3],[22.2893,114.21571,0],[22.28928,114.21529,1],[22.28914,114.21488,0],[22.28809,114.21361,0],[22.288,114.21324,0],[22.28805,114.21285,3]],"to_converted":["22.288072773","114.212856802"]},"931-4650":{"type":"MAJOR ROUTE","from_e":"839976.076","from_n":"816575.425","to":"4650","from_converted":["22.288072773","114.212856802"],"region":"HK","to_e":"839919.319","from":"931","to_n":"816768.747","name":"931-4650","route":[[22.28805,114.21285,3],[22.28812,114.21262,0],[22.28832,114.21233,0],[22.28877,114.21203,1],[22.28909,114.21197,0],[22.28934,114.21201,0],[22.28958,114.21212,0],[22.28978,114.21234,3]],"to_converted":["22.289818713","114.212306484"]},"4643-3480":{"type":"MAJOR ROUTE","from_e":"836380.592","from_n":"819078.673","to":"3480","from_converted":["22.310682641","114.177967112"],"region":"K","to_e":"836458.317","from":"4643","to_n":"818948.326","name":"4643-3480","route":[[22.3107,114.17799,3],[22.30952,114.17874,3]],"to_converted":["22.309505521","114.178721446"]},"3484-4640":{"type":"MAJOR ROUTE","from_e":"836273.929","from_n":"819369.685","to":"4640","from_converted":["22.313310658","114.176931911"],"region":"K","to_e":"836269.025","from":"3484","to_n":"819339.592","name":"3484-4640","route":[[22.3133,114.177,3],[22.31303,114.17695,3]],"to_converted":["22.313038900","114.176884314"]},"760-756":{"route":[[22.27928,114.17041,3],[22.27937,114.16955,0],[22.27963,114.16799,3]],"name":"760-756","region":"HK","to_n":"815640.774","from":"760","to_e":"835352.749","to_converted":["22.279636040","114.167993471"],"to":"756","from_n":"815600.695","type":"URBAN ROAD","from_converted":["22.279274215","114.170413831"],"from_e":"835602.186"},"3369-33691":{"type":"URBAN ROAD","from_e":"839269.874","from_n":"820683.627","to":"33691","from_converted":["22.325173709","114.206011664"],"region":"K","to_e":"839284.825","from":"3369","to_n":"820586.955","name":"3369-33691","route":[[22.32518,114.20601,3],[22.32518,114.20598,0],[22.32424,114.20608,0],[22.32425,114.20616,3]],"to_converted":["22.324300678","114.206156601"]},"888302-888303":{"type":"MAJOR ROUTE","from_e":"836661.066","from_n":"818660.839","to":"888303","from_converted":["22.306909304","114.180689111"],"region":"K","to_e":"836748.998","from":"888302","to_n":"818560.257","name":"888302-888303","route":[[22.30692,114.1807,3],[22.30657,114.1811,0],[22.306,114.18153,3]],"to_converted":["22.306000965","114.181542470"]},"888301-3692":{"type":"MAJOR ROUTE","from_e":"834711.437","from_n":"818893.39","to":"3692","from_converted":["22.309008728","114.161767531"],"region":"K","to_e":"834538.393","from":"888301","to_n":"818512.558","name":"888301-3692","route":[[22.309,114.16178,3],[22.30885,114.16165,0],[22.30809,114.16127,0],[22.30684,114.16076,0],[22.30555,114.16014,3]],"to_converted":["22.305569419","114.160088506"]},"50098-50099":{"type":"MAJOR ROUTE","from_e":"836705.363","from_n":"815357.127","to":"50099","from_converted":["22.277074710","114.181118108"],"region":"HK","to_e":"836708.043","from":"50098","to_n":"815420.557","name":"50098-50099","route":[[22.27707,114.18114,3],[22.27765,114.18116,3]],"to_converted":["22.277647523","114.181144129"]},"50045-50049":{"type":"MAJOR ROUTE","from_e":"833566.611","from_n":"816541.012","to":"50049","from_converted":["22.287763891","114.150660665"],"region":"HK","to_e":"833323.351","from":"50045","to_n":"816607.564","name":"50045-50049","route":[[22.28777,114.15066,3],[22.28837,114.1483,3]],"to_converted":["22.288364500","114.148300001"]},"7909-793":{"type":"URBAN ROAD","from_e":"837000.797","from_n":"815961.774","to":"793","from_converted":["22.282534957","114.183984995"],"region":"HK","to_e":"837428.196","from":"7909","to_n":"816174.589","name":"7909-793","route":[[22.28254,114.18398,3],[22.28277,114.18441,0],[22.28384,114.18576,0],[22.28444,114.18814,3]],"to_converted":["22.284456576","114.188132383"]},"888191-3459":{"type":"URBAN ROAD","from_e":"835889.633","from_n":"817306.075","to":"3459","from_converted":["22.294674957","114.173202588"],"region":"K","to_e":"835807.883","from":"888191","to_n":"817301.615","name":"888191-3459","route":[[22.29468,114.17325,3],[22.29475,114.17325,0],[22.2947,114.17241,3]],"to_converted":["22.294634661","114.172409266"]},"88820-888201":{"type":"URBAN ROAD","from_e":"835350.224","from_n":"818078.55","to":"888201","from_converted":["22.301650683","114.167967583"],"region":"K","to_e":"835346.075","from":"88820","to_n":"818138.176","name":"88820-888201","route":[[22.30165,114.16795,3],[22.30219,114.16793,3]],"to_converted":["22.302189140","114.167927284"]},"4648-46488":{"type":"MAJOR ROUTE","from_e":"835776.133","from_n":"815604.834","to":"46488","from_converted":["22.279311650","114.172101671"],"region":"HK","to_e":"835804.774","from":"4648","to_n":"815605.457","name":"4648-46488","route":[[22.27928,114.1721,3],[22.27929,114.17238,3]],"to_converted":["22.279317284","114.172379580"]},"9101-50108":{"type":"MAJOR ROUTE","from_e":"840052.115","from_n":"816777.46","to":"50108","from_converted":["22.289897110","114.213595146"],"region":"HK","to_e":"839863.478","from":"9101","to_n":"816886.033","name":"9101-50108","route":[[22.28989,114.21359,3],[22.29086,114.21175,3]],"to_converted":["22.290877996","114.211764870"]},"88818-888181":{"type":"URBAN ROAD","from_e":"836976.843","from_n":"818412.791","to":"888181","from_converted":["22.304669178","114.183753650"],"region":"K","to_e":"837009.054","from":"88818","to_n":"818365.583","name":"88818-888181","route":[[22.30468,114.18377,3],[22.30424,114.18406,3]],"to_converted":["22.304242847","114.184066234"]},"50048-893":{"type":"MAJOR ROUTE","from_e":"833272.432","from_n":"816617.227","to":"893","from_converted":["22.288451675","114.147805874"],"region":"HK","to_e":"832738.968","from":"50048","to_n":"816762.428","name":"50048-893","route":[[22.28848,114.14781,3],[22.28883,114.14327,0],[22.28886,114.14221,0],[22.28881,114.14146,1],[22.28891,114.14104,0],[22.28903,114.14078,0],[22.28931,114.14052,0],[22.28949,114.14044,1],[22.28985,114.14047,0],[22.29016,114.14059,0],[22.29032,114.14077,0],[22.29044,114.14107,1],[22.29045,114.14144,0],[22.29036,114.14174,0],[22.28979,114.14265,3]],"to_converted":["22.289761923","114.142628912"]},"46312-46319":{"type":"MAJOR ROUTE","from_e":"836633.89","from_n":"818130.091","to":"46319","from_converted":["22.302116332","114.180425243"],"region":"K","to_e":"836650.693","from":"46312","to_n":"817917.971","name":"46312-46319","route":[[22.30213,114.18043,3],[22.3021,114.18089,0],[22.30218,114.18104,0],[22.30232,114.18114,0],[22.30362,114.18125,0],[22.30384,114.18135,0],[22.3039,114.18146,0],[22.30407,114.18159,0],[22.30411,114.1817,0],[22.30408,114.18202,0],[22.30413,114.18214,0],[22.30456,114.18224,0],[22.30474,114.18234,0],[22.30576,114.18345,0],[22.30786,114.18495,1],[22.30842,114.18404,0],[22.30875,114.18366,1],[22.30875,114.1835,0],[22.30809,114.18236,0],[22.30752,114.18157,0],[22.30721,114.18124,0],[22.30707,114.18116,1],[22.30671,114.18119,0],[22.30629,114.18144,0],[22.30587,114.18158,0],[22.30548,114.18161,1],[22.3053,114.18158,0],[22.30348,114.18079,0],[22.30291,114.18061,1],[22.30232,114.18053,0],[22.30106,114.18046,0],[22.3002,114.18061,3]],"to_converted":["22.300200754","114.180588261"]},"7882-7891":{"type":"MAJOR ROUTE","from_e":"836603.538","from_n":"815878.324","to":"7891","from_converted":["22.281781475","114.180130206"],"region":"HK","to_e":"836701.913","from":"7882","to_n":"815918.062","name":"7882-7891","route":[[22.28176,114.18016,3],[22.28194,114.18039,0],[22.28203,114.18059,0],[22.28213,114.18109,3]],"to_converted":["22.282140312","114.181084785"]},"888161-3419":{"type":"URBAN ROAD","from_e":"837403.608","from_n":"820809.184","to":"3419","from_converted":["22.326309812","114.187897089"],"region":"K","to_e":"837531.387","from":"888161","to_n":"820885.152","name":"888161-3419","route":[[22.32632,114.18789,3],[22.327,114.18914,3]],"to_converted":["22.326995758","114.189137429"]},"50078-50079":{"type":"MAJOR ROUTE","from_e":"836298.985","from_n":"815671.02","to":"50079","from_converted":["22.279909421","114.177175010"],"region":"HK","to_e":"836349.024","from":"50078","to_n":"815690.857","name":"50078-50079","route":[[22.27987,114.17719,3],[22.27996,114.1775,0],[22.28046,114.17866,0],[22.2807,114.17906,0],[22.28104,114.17935,0],[22.28173,114.17981,0],[22.28202,114.18024,1],[22.28216,114.18063,0],[22.28219,114.18097,0],[22.28189,114.18217,0],[22.28191,114.18246,1],[22.28247,114.18405,0],[22.28346,114.18538,0],[22.28361,114.18573,1],[22.28348,114.18604,0],[22.28329,114.18617,0],[22.2828,114.18622,0],[22.28089,114.18692,0],[22.28023,114.18722,0],[22.28,114.18741,0],[22.27967,114.18752,2],[22.27964,114.18737,0],[22.27969,114.18731,0],[22.28023,114.187,0],[22.28318,114.18598,0],[22.28343,114.18584,0],[22.28349,114.18569,1],[22.28344,114.1855,0],[22.28267,114.18459,0],[22.28227,114.18402,0],[22.28138,114.18155,0],[22.28117,114.18067,0],[22.28086,114.17969,0],[22.28045,114.17899,0],[22.28029,114.17855,0],[22.28004,114.17782,0],[22.28007,114.17765,3]],"to_converted":["22.280088560","114.177660552"]},"7861-7871":{"type":"URBAN ROAD","from_e":"836714.038","from_n":"815819.064","to":"7871","from_converted":["22.281246294","114.181202411"],"region":"HK","to_e":"836643.102","from":"7861","to_n":"815784.132","name":"7861-7871","route":[[22.28121,114.18122,3],[22.28095,114.18051,3]],"to_converted":["22.280930853","114.180514087"]},"888171-3644":{"type":"MAJOR ROUTE","from_e":"839124.326","from_n":"821765.411","to":"3644","from_converted":["22.334943096","114.204600855"],"region":"K","to_e":"839174.133","from":"888171","to_n":"821171.9","name":"888171-3644","route":[[22.33498,114.20464,3],[22.33372,114.20602,0],[22.33348,114.20617,0],[22.33318,114.20624,1],[22.3327,114.20618,0],[22.33254,114.20611,0],[22.33155,114.20535,0],[22.3314,114.20528,0],[22.33084,114.20513,0],[22.32958,114.2051,3]],"to_converted":["22.329583265","114.205083254"]},"50109-910":{"type":"MAJOR ROUTE","from_e":"839875.054","from_n":"816894.55","to":"910","from_converted":["22.290954886","114.211877223"],"region":"HK","to_e":"840060.004","from":"50109","to_n":"816792.63","name":"50109-910","route":[[22.29093,114.21186,3],[22.29022,114.21324,0],[22.29004,114.21368,3]],"to_converted":["22.290034087","114.213671737"]},"46498-4649":{"type":"MAJOR ROUTE","from_e":"837982.489","from_n":"816997.558","to":"4649","from_converted":["22.291888040","114.193511877"],"region":"HK","to_e":"838010.672","from":"46498","to_n":"817025.768","name":"46498-4649","route":[[22.29186,114.19354,3],[22.2921,114.19382,3]],"to_converted":["22.292142765","114.193785398"]},"46495-4649":{"type":"MAJOR ROUTE","from_e":"838048.299","from_n":"817035.81","to":"4649","from_converted":["22.292233412","114.194150544"],"region":"HK","to_e":"838019.353","from":"46495","to_n":"817012.047","name":"46495-4649","route":[[22.29222,114.19416,3],[22.29201,114.19388,3]],"to_converted":["22.292018847","114.193869624"]},"34372-3450":{"type":"MAJOR ROUTE","from_e":"837354.848","from_n":"819455.342","to":"3450","from_converted":["22.314083846","114.187422880"],"region":"K","to_e":"837010.873","from":"34372","to_n":"818912.021","name":"34372-3450","route":[[22.31409,114.18741,3],[22.31338,114.18706,0],[22.31136,114.18577,0],[22.31058,114.18533,0],[22.3101,114.18498,0],[22.30918,114.18408,3]],"to_converted":["22.309177514","114.184084142"]},"3637-888151":{"type":"MAJOR ROUTE","from_e":"841500.294","from_n":"818838.784","to":"888151","from_converted":["22.308508339","114.227654904"],"region":"K","to_e":"842053.671","from":"3637","to_n":"818696.967","name":"3637-888151","route":[[22.30852,114.22765,3],[22.30863,114.22809,0],[22.30882,114.22832,0],[22.30962,114.22877,0],[22.31025,114.22923,1],[22.31192,114.22666,1],[22.31189,114.22652,0],[22.31194,114.2263,0],[22.31155,114.22606,0],[22.3089,114.22265,1],[22.30875,114.22272,0],[22.3085,114.22267,0],[22.3084,114.2227,0],[22.30657,114.22433,1],[22.30795,114.22616,0],[22.30821,114.22657,1],[22.30849,114.2273,0],[22.30889,114.22913,0],[22.30906,114.2304,1],[22.30903,114.23095,0],[22.30878,114.23157,0],[22.30856,114.23187,0],[22.30722,114.23302,3]],"to_converted":["22.307225874","114.233025033"]},"3639-88814":{"type":"MAJOR ROUTE","from_e":"840935.412","from_n":"818601.61","to":"88814","from_converted":["22.306368139","114.222171912"],"region":"K","to_e":"841123.667","from":"3639","to_n":"818587.958","name":"3639-88814","route":[[22.30637,114.22217,3],[22.30616,114.22265,0],[22.30607,114.22322,0],[22.30614,114.22374,0],[22.30624,114.224,3]],"to_converted":["22.306244332","114.223998898"]},"888141-3637":{"type":"MAJOR ROUTE","from_e":"841171.818","from_n":"818619.044","to":"3637","from_converted":["22.306524921","114.224466301"],"region":"K","to_e":"841500.294","from":"888141","to_n":"818838.784","name":"888141-3637","route":[[22.30651,114.22448,3],[22.30798,114.22633,0],[22.30837,114.22697,0],[22.30849,114.2273,1],[22.30889,114.22913,0],[22.30906,114.2304,1],[22.30903,114.23095,0],[22.30897,114.23117,0],[22.30878,114.23157,0],[22.30856,114.23187,1],[22.30487,114.23503,1],[22.30407,114.23541,0],[22.30328,114.23551,1],[22.30264,114.23537,0],[22.30239,114.23526,0],[22.30153,114.23468,0],[22.30014,114.23275,0],[22.30001,114.23283,0],[22.29996,114.23281,0],[22.29972,114.23221,0],[22.29949,114.23178,0],[22.29928,114.23194,0],[22.299,114.23198,2],[22.29888,114.23101,0],[22.29889,114.23028,0],[22.29909,114.22957,0],[22.29941,114.22904,1],[22.29973,114.22872,0],[22.30003,114.22851,0],[22.30145,114.22775,0],[22.30246,114.22711,0],[22.30315,114.22709,0],[22.30389,114.22669,1],[22.30628,114.22455,0],[22.30652,114.22427,1],[22.30699,114.22512,0],[22.30796,114.22635,0],[22.30822,114.22677,0],[22.30836,114.22702,0],[22.30852,114.22765,3]],"to_converted":["22.308508339","114.227654904"]},"888131-3639":{"type":"MAJOR ROUTE","from_e":"840039.042","from_n":"819687.873","to":"3639","from_converted":["22.316179946","114.213475143"],"region":"K","to_e":"840935.412","from":"888131","to_n":"818601.61","name":"888131-3639","route":[[22.31618,114.21348,3],[22.31101,114.21852,0],[22.30801,114.2209,0],[22.30674,114.2218,0],[22.30637,114.22217,3]],"to_converted":["22.306368139","114.222171912"]},"88825-3484":{"type":"MAJOR ROUTE","from_e":"836306.663","from_n":"819564.477","to":"3484","from_converted":["22.315069746","114.177249617"],"region":"K","to_e":"836273.929","from":"88825","to_n":"819369.685","name":"88825-3484","route":[[22.31506,114.17732,3],[22.3133,114.177,3]],"to_converted":["22.313310658","114.176931911"]},"34371-88821":{"type":"MAJOR ROUTE","from_e":"837346.446","from_n":"819464.44","to":"88821","from_converted":["22.314166012","114.187341340"],"region":"K","to_e":"837650.4","from":"34371","to_n":"820182.864","name":"34371-88821","route":[[22.31416,114.18735,3],[22.31554,114.18761,0],[22.31593,114.18774,0],[22.3192,114.18939,0],[22.32046,114.19022,0],[22.32065,114.19029,3]],"to_converted":["22.320653591","114.190292020"]},"3504-888231":{"type":"URBAN ROAD","from_e":"836128.396","from_n":"819945.362","to":"888231","from_converted":["22.318509361","114.175519384"],"region":"K","to_e":"836009.355","from":"3504","to_n":"819775.102","name":"3504-888231","route":[[22.31849,114.17555,3],[22.31695,114.1744,3]],"to_converted":["22.316971798","114.174364011"]},"88822-888221":{"type":"URBAN ROAD","from_e":"835098.871","from_n":"819181.09","to":"888221","from_converted":["22.311607138","114.165527466"],"region":"K","to_e":"835058.429","from":"88822","to_n":"819127.715","name":"88822-888221","route":[[22.31161,114.16553,3],[22.31131,114.16524,0],[22.31113,114.16513,3]],"to_converted":["22.311125102","114.165134999"]},"88806-88807":{"type":"URBAN ROAD","from_e":"836421.253","from_n":"820544.801","to":"88807","from_converted":["22.323922648","114.178361886"],"region":"K","to_e":"836418.558","from":"88806","to_n":"820503.762","name":"88806-88807","route":[[22.32392,114.17833,3],[22.32355,114.17833,3]],"to_converted":["22.323552042","114.178335724"]},"34221-34214":{"type":"MAJOR ROUTE","from_e":"837768.505","from_n":"820483.126","to":"34214","from_converted":["22.323365036","114.191438636"],"region":"K","to_e":"838796.309","from":"34221","to_n":"820560.136","name":"34221-34214","route":[[22.32337,114.19143,3],[22.32376,114.19172,0],[22.32418,114.19226,0],[22.3243,114.19259,0],[22.32438,114.19308,1],[22.32439,114.19372,0],[22.32408,114.20142,3]],"to_converted":["22.324059275","114.201414873"]},"752-875":{"route":[[22.27957,114.16553,3],[22.27978,114.16509,0],[22.28069,114.16376,3]],"name":"752-875","region":"HK","to_n":"815759.379","from":"752","to_e":"834918.334","to_converted":["22.280706835","114.163778147"],"to":"875","from_n":"815634.373","type":"URBAN ROAD","from_converted":["22.279578082","114.165533428"],"from_e":"835099.22"},"3368-88810":{"type":"MAJOR ROUTE","from_e":"839344.209","from_n":"820099.964","to":"88810","from_converted":["22.319902757","114.206732063"],"region":"K","to_e":"839314.866","from":"3368","to_n":"820127.978","name":"3368-88810","route":[[22.3199,114.20673,3],[22.32015,114.20644,3]],"to_converted":["22.320155792","114.206447314"]},"888231-3503":{"type":"URBAN ROAD","from_e":"836009.355","from_n":"819775.102","to":"3503","from_converted":["22.316971798","114.174364011"],"region":"K","to_e":"835971.906","from":"888231","to_n":"819718.872","name":"888231-3503","route":[[22.31695,114.1744,3],[22.31641,114.174,1],[22.31623,114.17422,0],[22.31383,114.1753,0],[22.31248,114.17607,0],[22.31222,114.17626,0],[22.31198,114.17652,0],[22.31166,114.17638,1],[22.31203,114.17635,0],[22.31222,114.17626,0],[22.31248,114.17607,0],[22.31383,114.1753,0],[22.31623,114.17422,0],[22.31641,114.174,0],[22.31646,114.17401,3]],"to_converted":["22.316464001","114.174000548"]},"88805-34551":{"type":"URBAN ROAD","from_e":"836463.722","from_n":"818544.811","to":"34551","from_converted":["22.305861535","114.178773852"],"region":"K","to_e":"836573.237","from":"88805","to_n":"818583.439","name":"88805-34551","route":[[22.30583,114.17877,3],[22.30589,114.17927,0],[22.30619,114.17985,3]],"to_converted":["22.306210353","114.179836707"]},"34222-888241":{"type":"MAJOR ROUTE","from_e":"837777.736","from_n":"820479.786","to":"888241","from_converted":["22.323334865","114.191528231"],"region":"K","to_e":"837675.498","from":"34222","to_n":"820244.302","name":"34222-888241","route":[[22.32334,114.19152,3],[22.32175,114.19068,0],[22.32121,114.19054,3]],"to_converted":["22.321208393","114.190535677"]},"8182-8111":{"type":"MAJOR ROUTE","from_e":"838886.659","from_n":"817228.946","to":"8111","from_converted":["22.293976478","114.202286382"],"region":"HK","to_e":"838254.2","from":"8182","to_n":"817119.959","name":"8182-8111","route":[[22.29397,114.20229,3],[22.29359,114.2005,0],[22.29346,114.19962,0],[22.29339,114.1982,0],[22.29299,114.19615,3]],"to_converted":["22.292993104","114.196148731"]},"4649-46497":{"type":"MAJOR ROUTE","from_e":"838019.353","from_n":"817012.047","to":"46497","from_converted":["22.292018847","114.193869624"],"region":"HK","to_e":"837992.283","from":"4649","to_n":"816985.248","name":"4649-46497","route":[[22.29201,114.19388,3],[22.29178,114.19361,3]],"to_converted":["22.291776863","114.193606905"]},"3393-88817":{"type":"MAJOR ROUTE","from_e":"838680.921","from_n":"821720.124","to":"88817","from_converted":["22.334534809","114.200296635"],"region":"K","to_e":"839074.865","from":"3393","to_n":"821794.406","name":"3393-88817","route":[[22.3345,114.20031,3],[22.33531,114.20253,0],[22.3354,114.20336,0],[22.33537,114.20368,0],[22.33524,114.20414,3]],"to_converted":["22.335205019","114.204120786"]},"756-752":{"route":[[22.27963,114.16799,3],[22.27946,114.16602,0],[22.27957,114.16553,3]],"name":"756-752","region":"HK","to_n":"815634.373","from":"756","to_e":"835099.22","to_converted":["22.279578082","114.165533428"],"to":"752","from_n":"815640.774","type":"URBAN ROAD","from_converted":["22.279636040","114.167993471"],"from_e":"835352.749"},"46497-877":{"type":"MAJOR ROUTE","from_e":"837992.283","from_n":"816985.248","to":"877","from_converted":["22.291776863","114.193606905"],"region":"HK","to_e":"837626.399","from":"46497","to_n":"816561.52","name":"46497-877","route":[[22.29178,114.19361,3],[22.28795,114.19005,3]],"to_converted":["22.287950661","114.190055985"]},"34211-33681":{"type":"MAJOR ROUTE","from_e":"838961.948","from_n":"820481.832","to":"33681","from_converted":["22.323351892","114.203022481"],"region":"K","to_e":"839352.89","from":"34211","to_n":"820107.684","name":"34211-33681","route":[[22.32335,114.20303,3],[22.32017,114.2067,0],[22.31998,114.20683,3]],"to_converted":["22.319972457","114.206816336"]},"30069-888301":{"type":"URBAN ROAD","from_e":"834823.46","from_n":"818955.081","to":"888301","from_converted":["22.309565932","114.162854687"],"region":"K","to_e":"834711.437","from":"30069","to_n":"818893.39","name":"30069-888301","route":[[22.30957,114.16285,3],[22.30958,114.1626,0],[22.30949,114.16231,0],[22.30936,114.16212,0],[22.309,114.16178,3]],"to_converted":["22.309008728","114.161767531"]},"8111-46495":{"type":"MAJOR ROUTE","from_e":"838254.2","from_n":"817119.959","to":"46495","from_converted":["22.292993104","114.196148731"],"region":"HK","to_e":"838048.299","from":"8111","to_n":"817035.81","name":"8111-46495","route":[[22.29299,114.19615,3],[22.29268,114.19505,0],[22.29245,114.19453,0],[22.29222,114.19416,3]],"to_converted":["22.292233412","114.194150544"]},"3460-78201":{"type":"URBAN ROAD","from_e":"835579.522","from_n":"817480.928","to":"78201","from_converted":["22.296253893","114.170193116"],"region":"K","to_e":"835418.623","from":"3460","to_n":"817893.881","name":"3460-78201","route":[[22.29624,114.17019,3],[22.2963,114.17064,0],[22.29548,114.17072,0],[22.29529,114.17044,1],[22.29928,114.1692,0],[22.29961,114.16898,0],[22.29999,114.16864,3]],"to_converted":["22.299983043","114.168631475"]},"888241-88824":{"type":"MAJOR ROUTE","from_e":"837675.498","from_n":"820244.302","to":"88824","from_converted":["22.321208393","114.190535677"],"region":"K","to_e":"837662.065","from":"888241","to_n":"820185.169","name":"888241-88824","route":[[22.32121,114.19054,3],[22.32068,114.19039,3]],"to_converted":["22.320674397","114.190405243"]},"50018-760":{"type":"MAJOR ROUTE","from_e":"835747.625","from_n":"815588.61","to":"760","from_converted":["22.279165129","114.171825058"],"region":"HK","to_e":"835602.186","from":"50018","to_n":"815600.695","name":"50018-760","route":[[22.27919,114.17183,3],[22.27928,114.17041,3]],"to_converted":["22.279274215","114.170413831"]},"46479-781":{"type":"MAJOR ROUTE","from_e":"836538.931","from_n":"814955.598","to":"781","from_converted":["22.273448679","114.179503141"],"region":"HK","to_e":"836585.353","from":"46479","to_n":"815155.819","name":"46479-781","route":[[22.27346,114.17953,3],[22.27398,114.17943,0],[22.27443,114.17948,0],[22.2747,114.17957,0],[22.27493,114.17971,0],[22.27523,114.17999,3]],"to_converted":["22.275256796","114.179953605"]},"46322-36511":{"type":"MAJOR ROUTE","from_e":"842034.07","from_n":"817933.434","to":"36511","from_converted":["22.300330773","114.232832053"],"region":"K","to_e":"841899.095","from":"46322","to_n":"817854.503","name":"46322-36511","route":[[22.30025,114.2329,3],[22.30014,114.23275,0],[22.29963,114.23152,3]],"to_converted":["22.299618424","114.231521891"]},"34781-36662":{"type":"URBAN ROAD","from_e":"836398.307","from_n":"818543.592","to":"36662","from_converted":["22.305850533","114.178138998"],"region":"K","to_e":"835997.232","from":"34781","to_n":"818679.961","name":"34781-36662","route":[[22.30585,114.17814,3],[22.30655,114.17599,0],[22.30706,114.17424,3]],"to_converted":["22.307082013","114.174246529"]},"4649-46499":{"type":"MAJOR ROUTE","from_e":"838010.672","from_n":"817025.768","to":"46499","from_converted":["22.292142765","114.193785398"],"region":"HK","to_e":"838040.608","from":"4649","to_n":"817047.877","name":"4649-46499","route":[[22.2921,114.19382,3],[22.29231,114.1941,3]],"to_converted":["22.292342393","114.194075924"]},"762-50078":{"route":[[22.27953,114.17459,3],[22.27934,114.17457,0],[22.27836,114.1747,1],[22.27809,114.1721,0],[22.27838,114.16866,1],[22.27922,114.16904,0],[22.27932,114.16912,0],[22.27944,114.16934,1],[22.27946,114.16963,0],[22.27928,114.1721,0],[22.27929,114.17266,0],[22.27964,114.1762,0],[22.27987,114.17719,3]],"name":"762-50078","region":"HK","to_n":"815671.02","from":"762","to_e":"836298.985","to_converted":["22.279909421","114.177175010"],"to":"50078","from_n":"815629.493","type":"MAJOR ROUTE","from_converted":["22.279534390","114.174561507"],"from_e":"836029.641"},"3470-3006":{"type":"URBAN ROAD","from_e":"834889.426","from_n":"818187.326","to":"3006","from_converted":["22.302632691","114.163495564"],"region":"K","to_e":"834913.16","from":"3470","to_n":"818626.797","name":"3470-3006","route":[[22.30263,114.16349,3],[22.30276,114.16349,0],[22.30284,114.16357,0],[22.30298,114.16361,0],[22.30554,114.1637,0],[22.30587,114.16375,0],[22.3066,114.16373,3]],"to_converted":["22.306601401","114.163725528"]},"88817-888171":{"type":"MAJOR ROUTE","from_e":"839074.865","from_n":"821794.406","to":"888171","from_converted":["22.335205019","114.204120786"],"region":"K","to_e":"839124.326","from":"88817","to_n":"821765.411","name":"88817-888171","route":[[22.33524,114.20414,3],[22.33498,114.20464,3]],"to_converted":["22.334943096","114.204600855"]},"7871-7881":{"type":"URBAN ROAD","from_e":"836643.102","from_n":"815784.132","to":"7881","from_converted":["22.280930853","114.180514087"],"region":"HK","to_e":"836592.753","from":"7871","to_n":"815897.731","name":"7871-7881","route":[[22.28095,114.18051,3],[22.28058,114.17954,0],[22.28061,114.17923,0],[22.28077,114.17906,1],[22.281,114.17901,0],[22.28123,114.17912,0],[22.28192,114.18005,3]],"to_converted":["22.281956734","114.180025559"]},"3633-3632":{"type":"MAJOR ROUTE","from_e":"842093.024","from_n":"818642.008","to":"3632","from_converted":["22.306729428","114.233406758"],"region":"K","to_e":"842224.694","from":"3633","to_n":"818075.31","name":"3633-3632","route":[[22.30674,114.23343,3],[22.30487,114.23503,0],[22.30407,114.23541,1],[22.30328,114.23551,0],[22.30264,114.23537,0],[22.30211,114.2351,0],[22.30159,114.23472,3]],"to_converted":["22.301611351","114.234682520"]},"888181-3715":{"type":"URBAN ROAD","from_e":"837009.054","from_n":"818365.583","to":"3715","from_converted":["22.304242847","114.184066234"],"region":"K","to_e":"837030.317","from":"888181","to_n":"817998.638","name":"888181-3715","route":[[22.30424,114.18406,3],[22.30372,114.18427,0],[22.3032,114.18437,0],[22.3018,114.1844,0],[22.30093,114.18428,3]],"to_converted":["22.300929099","114.184272414"]},"34982-36661":{"type":"URBAN ROAD","from_e":"835297.849","from_n":"819038.497","to":"36661","from_converted":["22.310319560","114.167458719"],"region":"K","to_e":"836000.337","from":"34982","to_n":"818685.152","name":"34982-36661","route":[[22.31032,114.16746,3],[22.31226,114.16711,0],[22.31302,114.16707,1],[22.31001,114.16762,0],[22.30954,114.16797,0],[22.30944,114.16799,1],[22.30612,114.1671,0],[22.30594,114.16709,1],[22.30575,114.16841,0],[22.30536,114.17015,0],[22.30531,114.17058,0],[22.30532,114.17104,0],[22.3054,114.17155,1],[22.30561,114.17214,0],[22.30655,114.1734,0],[22.30688,114.17398,0],[22.30714,114.17427,3]],"to_converted":["22.307128891","114.174276663"]},"34481-34371":{"type":"MAJOR ROUTE","from_e":"837004.89","from_n":"818935.405","to":"34371","from_converted":["22.309388688","114.184026087"],"region":"K","to_e":"837346.446","from":"34481","to_n":"819464.44","name":"34481-34371","route":[[22.3094,114.18402,3],[22.30974,114.18445,0],[22.31062,114.18523,0],[22.31143,114.1857,0],[22.31342,114.18699,0],[22.31416,114.18735,3]],"to_converted":["22.314166012","114.187341340"]},"4646-88806":{"type":"URBAN ROAD","from_e":"836422.941","from_n":"820573.545","to":"88806","from_converted":["22.324182223","114.178378274"],"region":"K","to_e":"836421.253","from":"4646","to_n":"820544.801","name":"4646-88806","route":[[22.32418,114.17835,3],[22.32392,114.17833,3]],"to_converted":["22.323922648","114.178361886"]},"3395-3393":{"type":"MAJOR ROUTE","from_e":"838185.484","from_n":"821426.384","to":"3393","from_converted":["22.331882792","114.195487068"],"region":"K","to_e":"838680.921","from":"3395","to_n":"821720.124","name":"3395-3393","route":[[22.33188,114.19549,3],[22.33236,114.19593,0],[22.33271,114.19637,0],[22.33318,114.19702,0],[22.33353,114.1976,0],[22.3345,114.20031,3]],"to_converted":["22.334534809","114.200296635"]},"34213-34222":{"type":"MAJOR ROUTE","from_e":"838795.019","from_n":"820547.703","to":"34222","from_converted":["22.323947000","114.201402332"],"region":"K","to_e":"837777.736","from":"34213","to_n":"820479.786","name":"34213-34222","route":[[22.32395,114.2014,3],[22.32404,114.2002,0],[22.3243,114.19314,1],[22.32422,114.19265,0],[22.32409,114.19232,0],[22.32391,114.19206,0],[22.32334,114.19152,3]],"to_converted":["22.323334865","114.191528231"]},"88827-34552":{"type":"URBAN ROAD","from_e":"836712.602","from_n":"818694.748","to":"34552","from_converted":["22.307215510","114.181189283"],"region":"K","to_e":"836588.377","from":"88827","to_n":"818563.869","name":"88827-34552","route":[[22.30719,114.18122,3],[22.30618,114.18025,0],[22.30601,114.18,3]],"to_converted":["22.306033621","114.179983637"]},"50106-8212":{"type":"MAJOR ROUTE","from_e":"839816.873","from_n":"816917.947","to":"8212","from_converted":["22.291166297","114.211312686"],"region":"HK","to_e":"839401.015","from":"50106","to_n":"817147.538","name":"50106-8212","route":[[22.29113,114.21129,3],[22.29236,114.2096,0],[22.29258,114.20921,0],[22.29276,114.20884,0],[22.29324,114.20728,3]],"to_converted":["22.293240454","114.207277642"]},"46478-46479":{"type":"MAJOR ROUTE","from_e":"836600.096","from_n":"814778.361","to":"46479","from_converted":["22.271848104","114.180096576"],"region":"HK","to_e":"836538.931","from":"46478","to_n":"814955.598","name":"46478-46479","route":[[22.27185,114.18011,3],[22.27346,114.17953,3]],"to_converted":["22.273448679","114.179503141"]},"36821-3491":{"type":"URBAN ROAD","from_e":"835268.36","from_n":"819250.732","to":"3491","from_converted":["22.312236154","114.167172386"],"region":"K","to_e":"835320.029","from":"36821","to_n":"818933.626","name":"36821-3491","route":[[22.31224,114.16721,3],[22.30974,114.16768,0],[22.30937,114.16768,3]],"to_converted":["22.309372524","114.167674045"]},"3500-3499":{"type":"URBAN ROAD","from_e":"835453.715","from_n":"819296.604","to":"3499","from_converted":["22.312650502","114.168971321"],"region":"K","to_e":"835203.267","from":"3500","to_n":"819239.124","name":"3500-3499","route":[[22.31263,114.16898,3],[22.31232,114.16733,0],[22.31239,114.16702,0],[22.31216,114.16675,0],[22.31215,114.16654,3]],"to_converted":["22.312131287","114.166540636"]},"34212-34213":{"type":"MAJOR ROUTE","from_e":"839032.263","from_n":"820399.522","to":"34213","from_converted":["22.322608473","114.203704833"],"region":"K","to_e":"838795.019","from":"34212","to_n":"820547.703","name":"34212-34213","route":[[22.3226,114.20369,3],[22.3233,114.20294,0],[22.32358,114.20243,0],[22.32391,114.20164,0],[22.32395,114.2014,3]],"to_converted":["22.323947000","114.201402332"]},"3006-30069":{"type":"URBAN ROAD","from_e":"834913.16","from_n":"818626.797","to":"30069","from_converted":["22.306601401","114.163725528"],"region":"K","to_e":"834823.46","from":"3006","to_n":"818955.081","name":"3006-30069","route":[[22.3066,114.16373,3],[22.30876,114.16364,1],[22.30928,114.16341,0],[22.3095,114.16309,0],[22.30957,114.16285,3]],"to_converted":["22.309565932","114.162854687"]},"88821-888211":{"type":"MAJOR ROUTE","from_e":"837650.4","from_n":"820182.864","to":"888211","from_converted":["22.320653591","114.190292020"],"region":"K","to_e":"837668.17","from":"88821","to_n":"820248.692","name":"88821-888211","route":[[22.32065,114.19029,3],[22.32125,114.19045,3]],"to_converted":["22.321248043","114.190464554"]},"88819-888191":{"type":"URBAN ROAD","from_e":"835948.908","from_n":"817311.201","to":"888191","from_converted":["22.294721260","114.173777807"],"region":"K","to_e":"835889.633","from":"88819","to_n":"817306.075","name":"88819-888191","route":[[22.29474,114.17377,3],[22.29475,114.17325,0],[22.29468,114.17325,3]],"to_converted":["22.294674957","114.173202588"]},"781-50098":{"route":[[22.27523,114.17999,3],[22.27592,114.18067,0],[22.27617,114.18085,0],[22.27668,114.1811,0],[22.27707,114.18114,3]],"name":"781-50098","region":"HK","to_n":"815357.127","from":"781","to_e":"836705.363","to_converted":["22.277074710","114.181118108"],"to":"50098","from_n":"815155.819","type":"MAJOR ROUTE","from_converted":["22.275256796","114.179953605"],"from_e":"836585.353"},"33701-3369":{"type":"URBAN ROAD","from_e":"839125.854","from_n":"820681.893","to":"3369","from_converted":["22.325158296","114.204613750"],"region":"K","to_e":"839269.874","from":"33701","to_n":"820683.627","name":"33701-3369","route":[[22.32518,114.20461,3],[22.3253,114.20597,1],[22.32424,114.20608,1],[22.32448,114.20872,1],[22.32542,114.20864,1],[22.32518,114.20601,3]],"to_converted":["22.325173709","114.206011664"]},"3457-3664":{"type":"MAJOR ROUTE","from_e":"836587.973","from_n":"817767.834","to":"3664","from_converted":["22.298844937","114.179979555"],"region":"K","to_e":"836446.718","from":"3457","to_n":"817636.666","name":"3457-3664","route":[[22.29884,114.17999,3],[22.29769,114.17858,3]],"to_converted":["22.297660430","114.178608724"]},"88810-34212":{"type":"MAJOR ROUTE","from_e":"839314.866","from_n":"820127.978","to":"34212","from_converted":["22.320155792","114.206447314"],"region":"K","to_e":"839032.263","from":"88810","to_n":"820399.522","name":"88810-34212","route":[[22.32015,114.20644,3],[22.3226,114.20369,3]],"to_converted":["22.322608473","114.203704833"]},"34554-34501":{"type":"URBAN ROAD","from_e":"836683.275","from_n":"818691.309","to":"34501","from_converted":["22.307184462","114.180904660"],"region":"K","to_e":"836830.285","from":"34554","to_n":"818807.735","name":"34554-34501","route":[[22.30718,114.18091,3],[22.30746,114.18097,0],[22.30777,114.18088,0],[22.30788,114.18072,0],[22.3079,114.1806,0],[22.30783,114.18037,1],[22.30763,114.18027,0],[22.3075,114.18027,0],[22.30724,114.1804,0],[22.30657,114.1811,0],[22.30609,114.18149,0],[22.30566,114.18161,1],[22.3053,114.18158,0],[22.30348,114.18079,0],[22.30291,114.18061,0],[22.30147,114.18048,0],[22.30146,114.18072,0],[22.30064,114.18066,0],[22.30011,114.1807,0],[22.30001,114.18064,0],[22.29998,114.18055,1],[22.3,114.18044,0],[22.30007,114.18038,0],[22.30102,114.18017,0],[22.30168,114.17987,0],[22.30197,114.17983,1],[22.30204,114.17987,0],[22.30204,114.17997,0],[22.30245,114.18003,0],[22.30266,114.18012,0],[22.30346,114.18063,0],[22.30529,114.18142,0],[22.30567,114.18145,1],[22.30606,114.18133,0],[22.30642,114.18104,0],[22.30719,114.18007,0],[22.30749,114.17983,0],[22.30765,114.1798,1],[22.30782,114.17985,0],[22.308,114.17998,0],[22.3081,114.18014,0],[22.30803,114.18156,0],[22.30825,114.18232,3]],"to_converted":["22.308235817","114.182331451"]},"868-870":{"type":"MAJOR ROUTE","from_e":"836682.388","from_n":"815883.302","to":"870","from_converted":["22.281826412","114.180895318"],"region":"HK","to_e":"836803.159","from":"868","to_n":"815997.652","name":"868-870","route":[[22.28183,114.1809,3],[22.28187,114.18118,0],[22.28194,114.18132,0],[22.28237,114.18161,0],[22.28284,114.18209,3]],"to_converted":["22.282859031","114.182067242"]},"787-7882":{"route":[[22.28068,114.18067,3],[22.28136,114.18005,0],[22.28151,114.18003,0],[22.28176,114.18016,3]],"name":"787-7882","region":"HK","to_n":"815878.324","from":"787","to_e":"836603.538","to_converted":["22.281781475","114.180130206"],"to":"7882","from_n":"815755.248","type":"MAJOR ROUTE","from_converted":["22.280670009","114.180648005"],"from_e":"836656.904"},"3417-3681":{"type":"URBAN ROAD","from_e":"837789.141","from_n":"821018.42","to":"3681","from_converted":["22.328199037","114.191639444"],"region":"K","to_e":"837968.472","from":"3417","to_n":"821192.37","name":"3417-3681","route":[[22.32819,114.19165,3],[22.32912,114.19273,0],[22.32976,114.19339,3]],"to_converted":["22.329769738","114.193380319"]},"3453-46312":{"type":"MAJOR ROUTE","from_e":"836694.153","from_n":"818344.939","to":"46312","from_converted":["22.304056527","114.181010139"],"region":"K","to_e":"836633.89","from":"3453","to_n":"818130.091","name":"3453-46312","route":[[22.30404,114.18104,3],[22.30348,114.18079,0],[22.30291,114.18061,0],[22.30232,114.18053,0],[22.30147,114.18048,0],[22.30146,114.18072,0],[22.30064,114.18066,0],[22.30011,114.1807,0],[22.29999,114.1806,1],[22.3,114.18044,0],[22.30007,114.18038,0],[22.30102,114.18017,0],[22.30168,114.17987,0],[22.30197,114.17983,1],[22.30204,114.17987,0],[22.30204,114.17997,0],[22.30245,114.18003,0],[22.30266,114.18012,0],[22.30346,114.18063,0],[22.30529,114.18142,0],[22.30567,114.18145,0],[22.30606,114.18133,1],[22.30629,114.1807,0],[22.30624,114.18041,0],[22.30618,114.18025,0],[22.30583,114.17972,0],[22.3057,114.17941,0],[22.30559,114.17896,0],[22.30549,114.17877,1],[22.30536,114.17863,0],[22.30518,114.17854,0],[22.3042,114.17825,0],[22.30384,114.17807,0],[22.303,114.1773,1],[22.30237,114.17874,0],[22.30219,114.17965,0],[22.30213,114.18043,3]],"to_converted":["22.302116332","114.180425243"]},"724-722":{"route":[[22.28514,114.15631,3],[22.28533,114.15623,0],[22.28564,114.15598,0],[22.28581,114.1557,0],[22.28599,114.15524,3]],"name":"724-722","region":"HK","to_n":"816345.067","from":"724","to_e":"834038.674","to_converted":["22.285995058","114.155241734"],"to":"722","from_n":"816250.647","type":"URBAN ROAD","from_converted":["22.285142525","114.156310318"],"from_e":"834148.783"},"88807-3506":{"type":"URBAN ROAD","from_e":"836418.558","from_n":"820503.762","to":"3506","from_converted":["22.323552042","114.178335724"],"region":"K","to_e":"836482.181","from":"88807","to_n":"819918.657","name":"88807-3506","route":[[22.32355,114.17833,3],[22.32322,114.17835,0],[22.32275,114.17829,0],[22.32194,114.17808,0],[22.32181,114.17809,1],[22.32155,114.17821,0],[22.32067,114.17884,0],[22.32023,114.1791,0],[22.31988,114.17926,0],[22.31941,114.17935,1],[22.31917,114.17935,0],[22.31825,114.17899,3]],"to_converted":["22.318268190","114.178953185"]},"50179-50178":{"type":"MAJOR ROUTE","from_e":"836362.957","from_n":"815673.882","to":"50178","from_converted":["22.279935264","114.177795746"],"region":"HK","to_e":"836297.644","from":"50179","to_n":"815654.668","name":"50179-50178","route":[[22.27993,114.1778,3],[22.27976,114.17716,3]],"to_converted":["22.279761752","114.177161998"]},"50058-50045":{"type":"MAJOR ROUTE","from_e":"833814.842","from_n":"816458.312","to":"50045","from_converted":["22.287017429","114.153069571"],"region":"HK","to_e":"833566.611","from":"50058","to_n":"816541.012","name":"50058-50045","route":[[22.28706,114.15308,3],[22.28777,114.15066,3]],"to_converted":["22.287763891","114.150660665"]},"50019-50018":{"type":"MAJOR ROUTE","from_e":"835803.901","from_n":"815589.008","to":"50018","from_converted":["22.279168739","114.172371114"],"region":"HK","to_e":"835747.625","from":"50019","to_n":"815588.61","name":"50019-50018","route":[[22.27919,114.17237,3],[22.27919,114.17183,3]],"to_converted":["22.279165129","114.171825058"]},"35071-3505":{"type":"URBAN ROAD","from_e":"836398.278","from_n":"820324.278","to":"3505","from_converted":["22.321931197","114.178138866"],"region":"K","to_e":"836334.997","from":"35071","to_n":"820230.44","name":"35071-3505","route":[[22.32194,114.17808,3],[22.32181,114.17809,0],[22.32147,114.17827,0],[22.32109,114.17752,3]],"to_converted":["22.321083788","114.177524647"]},"821-50107":{"type":"MAJOR ROUTE","from_e":"839406.398","from_n":"817161.385","to":"50107","from_converted":["22.293365491","114.207329907"],"region":"HK","to_e":"839823.434","from":"821","to_n":"816928.645","name":"821-50107","route":[[22.29335,114.20732,3],[22.29286,114.20889,0],[22.29268,114.20926,0],[22.29245,114.20967,0],[22.29116,114.21145,0],[22.29078,114.21211,0],[22.29041,114.21292,1],[22.28997,114.21436,0],[22.28968,114.21561,0],[22.28955,114.21717,0],[22.2894,114.21752,1],[22.2891,114.21773,0],[22.28872,114.21777,0],[22.28856,114.21775,0],[22.28783,114.21741,0],[22.28759,114.21741,0],[22.28735,114.21749,0],[22.28736,114.21813,0],[22.28618,114.21813,2],[22.28619,114.21656,1],[22.28736,114.21656,1],[22.28736,114.21716,0],[22.28749,114.21727,0],[22.2878,114.21731,1],[22.28815,114.21713,0],[22.28844,114.21691,0],[22.28882,114.21647,1],[22.28902,114.21612,0],[22.28944,114.21472,0],[22.2899,114.21358,0],[22.29058,114.21226,0],[22.29107,114.21138,0],[22.29236,114.2096,0],[22.29258,114.20921,1],[22.29276,114.20884,0],[22.29306,114.20792,0],[22.294,114.20466,0],[22.29412,114.20402,0],[22.29414,114.2036,0],[22.29403,114.20255,2],[22.29359,114.2005,0],[22.29346,114.19962,0],[22.29339,114.1982,0],[22.29303,114.19633,0],[22.29281,114.19542,0],[22.29245,114.19453,1],[22.29225,114.1942,0],[22.29179,114.19362,0],[22.28779,114.18991,1],[22.28708,114.18948,0],[22.28679,114.18938,0],[22.28622,114.18936,0],[22.28535,114.18922,0],[22.28506,114.18907,0],[22.28457,114.18859,1],[22.2843,114.18798,0],[22.28388,114.18631,0],[22.28373,114.18596,0],[22.2827,114.18466,0],[22.28227,114.18402,0],[22.28138,114.18155,0],[22.28122,114.18123,0],[22.28058,114.17954,0],[22.28061,114.17923,0],[22.28077,114.17906,2],[22.281,114.17901,0],[22.28123,114.17912,0],[22.2819,114.18001,0],[22.28202,114.18024,1],[22.28216,114.18063,0],[22.28219,114.18097,0],[22.28189,114.18217,0],[22.28191,114.18246,1],[22.28247,114.18405,0],[22.28276,114.18448,0],[22.28351,114.1853,0],[22.28384,114.18576,0],[22.28427,114.18756,0],[22.28449,114.18829,0],[22.2846,114.18849,1],[22.28508,114.18897,0],[22.28537,114.18912,0],[22.28701,114.18933,0],[22.28756,114.18961,0],[22.28812,114.19004,1],[22.29206,114.19376,1],[22.29255,114.19448,0],[22.293,114.19566,1],[22.2935,114.19818,0],[22.2936,114.1999,0],[22.29369,114.20048,0],[22.29414,114.20253,0],[22.29424,114.20391,0],[22.29414,114.20538,1],[22.29406,114.20594,0],[22.2939,114.20647,0],[22.29282,114.20928,1],[22.29214,114.2103,0],[22.29125,114.21136,3]],"to_converted":["22.291262893","114.211376378"]},"8212-8182":{"type":"MAJOR ROUTE","from_e":"839401.015","from_n":"817147.538","to":"8182","from_converted":["22.293240454","114.207277642"],"region":"HK","to_e":"838886.659","from":"8212","to_n":"817228.946","name":"8212-8182","route":[[22.29324,114.20728,3],[22.29387,114.20521,0],[22.29412,114.20402,0],[22.29411,114.20323,0],[22.29397,114.20229,3]],"to_converted":["22.293976478","114.202286382"]},"3692-46332":{"type":"MAJOR ROUTE","from_e":"834538.393","from_n":"818512.558","to":"46332","from_converted":["22.305569419","114.160088506"],"region":"K","to_e":"834395.219","from":"3692","to_n":"818269.104","name":"3692-46332","route":[[22.30555,114.16014,3],[22.30328,114.1589,3]],"to_converted":["22.303370731","114.158699284"]},"7861-50179":{"type":"URBAN ROAD","from_e":"836714.038","from_n":"815819.064","to":"50179","from_converted":["22.281246294","114.181202411"],"region":"HK","to_e":"836362.957","from":"7861","to_n":"815673.882","name":"7861-50179","route":[[22.28129,114.18119,3],[22.28086,114.17969,0],[22.28012,114.17842,0],[22.27993,114.1778,3]],"to_converted":["22.279935264","114.177795746"]},"34501-34481":{"type":"URBAN ROAD","from_e":"836830.285","from_n":"818807.735","to":"34481","from_converted":["22.308235817","114.182331451"],"region":"K","to_e":"837004.89","from":"34501","to_n":"818935.405","name":"34501-34481","route":[[22.30825,114.18232,3],[22.30878,114.18322,0],[22.3094,114.18402,3]],"to_converted":["22.309388688","114.184026087"]},"3651-4632":{"type":"MAJOR ROUTE","from_e":"841880.892","from_n":"817878.688","to":"4632","from_converted":["22.299836889","114.231345323"],"region":"HK","to_e":"842015.881","from":"3651","to_n":"817960.926","name":"3651-4632","route":[[22.29972,114.23142,3],[22.3006,114.23248,0],[22.30066,114.23261,3]],"to_converted":["22.300579103","114.232655634"]},"789-7908":{"route":[[22.28206,114.18151,3],[22.28166,114.18131,0],[22.28124,114.18081,0],[22.28086,114.17969,0],[22.28045,114.17899,0],[22.28004,114.17782,1],[22.28009,114.17759,0],[22.28026,114.17742,0],[22.28088,114.17724,1],[22.28067,114.1745,1],[22.28058,114.17456,0],[22.27988,114.17465,1],[22.27979,114.17468,0],[22.27964,114.17485,0],[22.27952,114.17516,0],[22.27964,114.1762,0],[22.27978,114.1769,0],[22.27996,114.1775,0],[22.28046,114.17866,1],[22.2807,114.17906,0],[22.28104,114.17935,0],[22.28173,114.17981,0],[22.28214,114.18033,0],[22.2823,114.1806,0],[22.28251,114.18117,0],[22.28303,114.18228,0],[22.28359,114.18286,0],[22.28421,114.18314,1],[22.28468,114.18315,0],[22.30089,114.18036,0],[22.30128,114.18023,0],[22.30168,114.18003,0],[22.30204,114.17997,0],[22.30204,114.17987,2],[22.30197,114.17983,0],[22.30168,114.17987,0],[22.30102,114.18017,0],[22.30007,114.18038,0],[22.3,114.18044,0],[22.29998,114.18055,1],[22.30001,114.18064,0],[22.30011,114.1807,0],[22.30064,114.18066,0],[22.30146,114.18072,1],[22.30147,114.18048,0],[22.30106,114.18046,0],[22.28445,114.18326,1],[22.28409,114.1832,0],[22.28357,114.18295,0],[22.28272,114.18202,0],[22.28255,114.18195,0],[22.28229,114.18193,1],[22.28208,114.18203,0],[22.28201,114.18224,0],[22.28233,114.18347,3]],"name":"789-7908","region":"HK","to_n":"815938.449","from":"789","to_e":"836950.758","to_converted":["22.282324338","114.183499436"],"to":"7908","from_n":"815908.341","type":"URBAN ROAD","from_converted":["22.282052513","114.181534904"],"from_e":"836748.301"},"33681-3643":{"type":"MAJOR ROUTE","from_e":"839352.89","from_n":"820107.684","to":"3643","from_converted":["22.319972457","114.206816336"],"region":"K","to_e":"839537.601","from":"33681","to_n":"819872.588","name":"33681-3643","route":[[22.31998,114.20683,3],[22.31939,114.2075,0],[22.31895,114.2079,0],[22.3183,114.20827,0],[22.31785,114.20862,3]],"to_converted":["22.317849059","114.208608662"]},"4652-4633":{"type":"MAJOR ROUTE","from_e":"833101.677","from_n":"816778.101","to":"4633","from_converted":["22.289904163","114.146148580"],"region":"HK","to_e":"834364.207","from":"4652","to_n":"818290.731","name":"4652-4633","route":[[22.2899,114.14616,3],[22.28963,114.14578,0],[22.28947,114.14539,0],[22.28937,114.14497,0],[22.28933,114.14442,1],[22.28934,114.14351,0],[22.28944,114.14288,0],[22.28982,114.14199,0],[22.28992,114.14136,1],[22.2898,114.14096,0],[22.28964,114.14071,0],[22.28916,114.14019,0],[22.28883,114.13998,1],[22.28875,114.14001,0],[22.28871,114.14012,0],[22.28888,114.14074,1],[22.28903,114.14078,0],[22.28931,114.14052,0],[22.28949,114.14044,0],[22.28985,114.14047,0],[22.29016,114.14059,0],[22.29032,114.14077,0],[22.29044,114.14107,1],[22.29045,114.14144,0],[22.29036,114.14174,0],[22.28965,114.14286,0],[22.28954,114.14315,0],[22.28945,114.14344,0],[22.28941,114.14419,1],[22.28942,114.14457,0],[22.2895,114.14504,0],[22.28968,114.14553,0],[22.2902,114.14628,1],[22.29124,114.14732,0],[22.29731,114.15308,0],[22.30018,114.15565,0],[22.30114,114.15649,0],[22.30268,114.15762,0],[22.30341,114.158,0],[22.30368,114.15824,3]],"to_converted":["22.303566002","114.158398291"]},"33671-3363":{"type":"URBAN ROAD","from_e":"839539.341","from_n":"820612.792","to":"3363","from_converted":["22.324533536","114.208627064"],"region":"K","to_e":"839521.209","from":"33671","to_n":"820694.514","name":"33671-3363","route":[[22.32447,114.20863,3],[22.32448,114.20872,0],[22.32542,114.20864,0],[22.3254,114.20844,3]],"to_converted":["22.325271568","114.208451236"]},"3499-88822":{"type":"URBAN ROAD","from_e":"835203.267","from_n":"819239.124","to":"88822","from_converted":["22.312131287","114.166540636"],"region":"K","to_e":"835098.871","from":"3499","to_n":"819181.09","name":"3499-88822","route":[[22.31215,114.16654,3],[22.31201,114.1661,0],[22.31161,114.16553,3]],"to_converted":["22.311607138","114.165527466"]},"888201-3470":{"type":"URBAN ROAD","from_e":"835346.075","from_n":"818138.176","to":"3470","from_converted":["22.302189140","114.167927284"],"region":"K","to_e":"834889.426","from":"888201","to_n":"818187.326","name":"888201-3470","route":[[22.30219,114.16793,3],[22.30266,114.16798,0],[22.30311,114.16796,0],[22.30366,114.16782,0],[22.30452,114.16757,0],[22.30464,114.1674,0],[22.30468,114.16723,1],[22.30449,114.16676,0],[22.30446,114.1665,0],[22.3045,114.16377,1],[22.30291,114.1637,0],[22.30268,114.16381,0],[22.3026,114.16378,0],[22.30254,114.16367,0],[22.30256,114.16356,0],[22.30263,114.16349,3]],"to_converted":["22.302632691","114.163495564"]},"50059-50058":{"type":"MAJOR ROUTE","from_e":"833862.7","from_n":"816441.553","to":"50058","from_converted":["22.286866152","114.153533997"],"region":"HK","to_e":"833814.842","from":"50059","to_n":"816458.312","name":"50059-50058","route":[[22.28689,114.15355,3],[22.28706,114.15308,3]],"to_converted":["22.287017429","114.153069571"]},"787-50179":{"route":[[22.28066,114.18064,3],[22.28079,114.18052,0],[22.28077,114.18027,0],[22.28023,114.17882,0],[22.27993,114.1778,3]],"name":"787-50179","region":"HK","to_n":"815673.882","from":"787","to_e":"836362.957","to_converted":["22.279935264","114.177795746"],"to":"50179","from_n":"815755.248","type":"MAJOR ROUTE","from_converted":["22.280670009","114.180648005"],"from_e":"836656.904"},"3363-3369":{"type":"URBAN ROAD","from_e":"839521.209","from_n":"820694.514","to":"3369","from_converted":["22.325271568","114.208451236"],"region":"K","to_e":"839269.874","from":"3363","to_n":"820683.627","name":"3363-3369","route":[[22.3254,114.20844,3],[22.32518,114.20601,3]],"to_converted":["22.325173709","114.206011664"]},"7919-786":{"type":"URBAN ROAD","from_e":"836956.857","from_n":"815917.381","to":"786","from_converted":["22.282134078","114.183558608"],"region":"HK","to_e":"836793.573","from":"7919","to_n":"815852.754","name":"7919-786","route":[[22.28211,114.18357,3],[22.28154,114.18198,3]],"to_converted":["22.281550513","114.181974177"]},"722-50059":{"route":[[22.286,114.15522,3],[22.28689,114.15355,3]],"name":"722-50059","region":"HK","to_n":"816441.553","from":"722","to_e":"833862.7","to_converted":["22.286866152","114.153533997"],"to":"50059","from_n":"816345.067","type":"MAJOR ROUTE","from_converted":["22.285995058","114.155241734"],"from_e":"834038.674"},"3010-888301":{"type":"URBAN ROAD","from_e":"835020.456","from_n":"819072.594","to":"888301","from_converted":["22.310627299","114.164766499"],"region":"K","to_e":"834711.437","from":"3010","to_n":"818893.39","name":"3010-888301","route":[[22.31065,114.16478,3],[22.31042,114.16365,0],[22.30998,114.1627,0],[22.30945,114.16205,0],[22.30902,114.16175,3]],"to_converted":["22.309008728","114.161767531"]},"78201-88820":{"type":"URBAN ROAD","from_e":"835418.623","from_n":"817893.881","to":"88820","from_converted":["22.299983043","114.168631475"],"region":"K","to_e":"835350.224","from":"78201","to_n":"818078.55","name":"78201-88820","route":[[22.29999,114.16864,3],[22.30012,114.16849,0],[22.30053,114.16823,0],[22.30165,114.16798,3]],"to_converted":["22.301650683","114.167967583"]},"36661-34783":{"type":"URBAN ROAD","from_e":"836000.337","from_n":"818685.152","to":"34783","from_converted":["22.307128891","114.174276663"],"region":"K","to_e":"836432.903","from":"36661","to_n":"818548.685","name":"36661-34783","route":[[22.30715,114.17428,3],[22.30588,114.17847,3]],"to_converted":["22.305896523","114.178474753"]},"34554-888302":{"type":"URBAN ROAD","from_e":"836683.275","from_n":"818691.309","to":"888302","from_converted":["22.307184462","114.180904660"],"region":"K","to_e":"836661.066","from":"34554","to_n":"818660.839","name":"34554-888302","route":[[22.30718,114.18091,3],[22.30746,114.18097,0],[22.30777,114.18088,0],[22.30788,114.18072,0],[22.3079,114.1806,0],[22.30783,114.18037,1],[22.30763,114.18027,0],[22.3075,114.18027,0],[22.30724,114.1804,0],[22.30692,114.1807,3]],"to_converted":["22.306909304","114.180689111"]},"34551-34554":{"type":"URBAN ROAD","from_e":"836573.237","from_n":"818583.439","to":"34554","from_converted":["22.306210353","114.179836707"],"region":"K","to_e":"836683.275","from":"34551","to_n":"818691.309","name":"34551-34554","route":[[22.30619,114.17985,3],[22.30648,114.18028,0],[22.30718,114.18091,3]],"to_converted":["22.307184462","114.180904660"]},"3503-3502":{"type":"URBAN ROAD","from_e":"835971.906","from_n":"819718.872","to":"3502","from_converted":["22.316464001","114.174000548"],"region":"K","to_e":"835629.414","from":"3503","to_n":"819329.703","name":"3503-3502","route":[[22.31646,114.17401,3],[22.31641,114.174,0],[22.31623,114.17422,0],[22.31383,114.1753,0],[22.31283,114.17587,1],[22.31312,114.17632,1],[22.31425,114.17641,0],[22.31494,114.1767,0],[22.31622,114.17699,1],[22.31688,114.17568,1],[22.31637,114.17595,0],[22.31574,114.17588,0],[22.31513,114.17588,0],[22.31504,114.17581,0],[22.31503,114.1757,1],[22.31509,114.17563,0],[22.31734,114.17469,1],[22.31311,114.17154,1],[22.31305,114.17142,0],[22.31293,114.17068,3]],"to_converted":["22.312949480","114.170676555"]},"818-821":{"type":"MAJOR ROUTE","from_e":"838881.248","from_n":"817243.884","to":"821","from_converted":["22.294111386","114.202233897"],"region":"HK","to_e":"839406.398","from":"818","to_n":"817161.385","name":"818-821","route":[[22.29408,114.20224,3],[22.29422,114.20341,0],[22.29421,114.20421,0],[22.29397,114.20524,0],[22.29335,114.20732,3]],"to_converted":["22.293365491","114.207329907"]},"33691-33671":{"type":"URBAN ROAD","from_e":"839284.825","from_n":"820586.955","to":"33671","from_converted":["22.324300678","114.206156601"],"region":"K","to_e":"839539.341","from":"33691","to_n":"820612.792","name":"33691-33671","route":[[22.32425,114.20616,3],[22.32447,114.20863,3]],"to_converted":["22.324533536","114.208627064"]},"3715-3457":{"type":"MAJOR ROUTE","from_e":"837030.317","from_n":"817998.638","to":"3457","from_converted":["22.300929099","114.184272414"],"region":"K","to_e":"836587.973","from":"3715","to_n":"817767.834","name":"3715-3457","route":[[22.30093,114.18428,3],[22.30056,114.18418,0],[22.3003,114.18404,0],[22.30006,114.18381,0],[22.29984,114.18351,1],[22.29936,114.18186,0],[22.29923,114.1807,0],[22.29912,114.18039,0],[22.29884,114.17999,3]],"to_converted":["22.298844937","114.179979555"]},"3632-46322":{"type":"MAJOR ROUTE","from_e":"842224.694","from_n":"818075.31","to":"46322","from_converted":["22.301611351","114.234682520"],"region":"K","to_e":"842034.07","from":"3632","to_n":"817933.434","name":"3632-46322","route":[[22.30159,114.23472,3],[22.30025,114.2329,3]],"to_converted":["22.300330773","114.232832053"]},"3664-3458":{"type":"URBAN ROAD","from_e":"836446.718","from_n":"817636.666","to":"3458","from_converted":["22.297660430","114.178608724"],"region":"K","to_e":"836100.641","from":"3664","to_n":"817358.907","name":"3664-3458","route":[[22.29767,114.17856,3],[22.29634,114.17691,0],[22.2959,114.17646,0],[22.29557,114.17602,0],[22.29516,114.17525,3]],"to_converted":["22.295152096","114.175250260"]},"50049-50048":{"type":"MAJOR ROUTE","from_e":"833323.351","from_n":"816607.564","to":"50048","from_converted":["22.288364500","114.148300001"],"region":"HK","to_e":"833272.432","from":"50049","to_n":"816617.227","name":"50049-50048","route":[[22.28837,114.1483,3],[22.28848,114.14781,3]],"to_converted":["22.288451675","114.147805874"]},"34783-88805":{"type":"URBAN ROAD","from_e":"836432.903","from_n":"818548.685","to":"88805","from_converted":["22.305896523","114.178474753"],"region":"K","to_e":"836463.722","from":"34783","to_n":"818544.811","name":"34783-88805","route":[[22.30588,114.17847,3],[22.30583,114.17877,3]],"to_converted":["22.305861535","114.178773852"]},"910-931":{"type":"MAJOR ROUTE","from_e":"840060.004","from_n":"816792.715","to":"931","from_converted":["22.290034855","114.213671737"],"region":"HK","to_e":"840101.178","from":"910","to_n":"816617.612","name":"910-931","route":[[22.29004,114.21368,3],[22.28987,114.21398,0],[22.28971,114.21415,0],[22.28933,114.21431,0],[22.289,114.2143,0],[22.28844,114.21406,3]],"to_converted":["22.288453474","114.214070868"]},"893-4652":{"type":"MAJOR ROUTE","from_e":"832738.968","from_n":"816762.428","to":"4652","from_converted":["22.289761923","114.142628912"],"region":"HK","to_e":"833101.677","from":"893","to_n":"816778.101","name":"893-4652","route":[[22.28979,114.14265,3],[22.28965,114.14286,0],[22.28945,114.14344,0],[22.28942,114.14457,1],[22.2895,114.14504,0],[22.28968,114.14553,0],[22.2902,114.14628,1],[22.29124,114.14732,0],[22.29731,114.15308,0],[22.30114,114.15649,1],[22.30268,114.15762,0],[22.30341,114.158,0],[22.30346,114.15783,0],[22.30343,114.15776,1],[22.3029,114.15749,0],[22.30141,114.15647,0],[22.30122,114.15648,0],[22.30108,114.15655,1],[22.30101,114.15669,0],[22.30102,114.15682,0],[22.30179,114.15809,1],[22.302,114.15796,0],[22.30208,114.15797,0],[22.3027,114.1587,0],[22.30288,114.15859,2],[22.30102,114.15661,0],[22.29725,114.15319,0],[22.29118,114.14743,0],[22.2899,114.14616,3]],"to_converted":["22.289904163","114.146148580"]},"7891-789":{"type":"MAJOR ROUTE","from_e":"836701.913","from_n":"815918.062","to":"789","from_converted":["22.282140312","114.181084785"],"region":"HK","to_e":"836748.301","from":"7881","to_n":"815908.341","name":"7891-789","route":[[22.28213,114.18109,3],[22.28215,114.18124,0],[22.28207,114.18154,3]],"to_converted":["22.282052513","114.181534904"]},"3369-3370":{"type":"URBAN ROAD","from_e":"839269.874","from_n":"820683.627","to":"3370","from_converted":["22.325173709","114.206011664"],"region":"K","to_e":"839125.949","from":"3369","to_n":"820671.968","name":"3369-3370","route":[[22.32518,114.20601,3],[22.32507,114.20461,3]],"to_converted":["22.325068667","114.204614654"]},"50119-930":{"type":"MAJOR ROUTE","from_e":"840850.736","from_n":"816287.253","to":"930","from_converted":["22.285468293","114.221343505"],"region":"HK","to_e":"840495.49","from":"50119","to_n":"816655.752","name":"50119-930","route":[[22.28547,114.22134,3],[22.28695,114.2214,0],[22.28735,114.22136,0],[22.28783,114.22099,1],[22.28814,114.2206,0],[22.28846,114.2198,0],[22.2886,114.21922,0],[22.28877,114.21789,3]],"to_converted":["22.288796979","114.217897304"]},"3419-3417":{"type":"URBAN ROAD","from_e":"837531.387","from_n":"820885.152","to":"3417","from_converted":["22.326995758","114.189137429"],"region":"K","to_e":"837789.141","from":"3419","to_n":"821018.42","name":"3419-3417","route":[[22.327,114.18914,3],[22.32779,114.19099,0],[22.32819,114.19165,3]],"to_converted":["22.328199037","114.191639444"]},"34212-33701":{"type":"URBAN ROAD","from_e":"839032.263","from_n":"820399.522","to":"33701","from_converted":["22.322608473","114.203704833"],"region":"K","to_e":"839125.854","from":"34212","to_n":"820681.893","name":"34212-33701","route":[[22.3226,114.20369,3],[22.3233,114.20294,0],[22.32358,114.20243,0],[22.32391,114.20164,0],[22.32397,114.20132,1],[22.32431,114.19351,0],[22.32428,114.19291,0],[22.32409,114.19232,1],[22.32391,114.19206,0],[22.32359,114.19173,0],[22.32321,114.19143,0],[22.32175,114.19068,0],[22.32049,114.19034,0],[22.32012,114.19016,0],[22.31915,114.18946,0],[22.31588,114.18781,0],[22.31549,114.18768,0],[22.31407,114.18741,0],[22.31368,114.18723,0],[22.31136,114.18577,0],[22.31058,114.18533,0],[22.3101,114.18498,1],[22.30931,114.18423,0],[22.30895,114.18382,0],[22.30809,114.18236,0],[22.30752,114.18157,0],[22.30618,114.18025,0],[22.30583,114.17972,1],[22.3057,114.17941,0],[22.30564,114.17887,0],[22.30575,114.17829,0],[22.3061,114.17714,2],[22.30638,114.17706,0],[22.30597,114.17835,0],[22.30585,114.17859,0],[22.30583,114.17881,0],[22.30589,114.17927,0],[22.30607,114.17968,1],[22.30648,114.18028,0],[22.30762,114.18141,0],[22.30819,114.18222,0],[22.30878,114.18322,0],[22.30974,114.18445,0],[22.31042,114.18509,1],[22.31372,114.18716,0],[22.31412,114.18734,0],[22.31554,114.18761,0],[22.31593,114.18774,0],[22.3192,114.18939,0],[22.32046,114.19022,0],[22.32177,114.19062,0],[22.3234,114.19144,0],[22.32376,114.19172,0],[22.32405,114.19207,1],[22.32418,114.19226,0],[22.32436,114.19286,0],[22.32439,114.19372,0],[22.3241,114.20132,0],[22.32403,114.20186,1],[22.32421,114.2023,0],[22.32455,114.20271,0],[22.32503,114.20354,0],[22.32513,114.20399,0],[22.32518,114.20461,3]],"to_converted":["22.325158296","114.204613750"]},"875-3402":{"type":"URBAN ROAD","from_e":"834918.334","from_n":"815759.379","to":"3402","from_converted":["22.280706835","114.163778147"],"region":"HK","to_e":"834754.135","from":"875","to_n":"815848.947","name":"875-3402","route":[[22.28069,114.16376,3],[22.28108,114.1632,0],[22.2815,114.16218,3]],"to_converted":["22.281515555","114.162184791"]},"4640-4643":{"type":"MAJOR ROUTE","from_e":"836269.025","from_n":"819339.592","to":"4643","from_converted":["22.313038900","114.176884314"],"region":"K","to_e":"836380.592","from":"4640","to_n":"819078.673","name":"4640-4643","route":[[22.31303,114.17695,3],[22.31254,114.17686,0],[22.31205,114.17693,0],[22.3107,114.17799,3]],"to_converted":["22.310682641","114.177967112"]},"3458-88819":{"type":"URBAN ROAD","from_e":"836100.641","from_n":"817358.907","to":"88819","from_converted":["22.295152096","114.175250260"],"region":"K","to_e":"835948.908","from":"3458","to_n":"817311.201","name":"3458-88819","route":[[22.29516,114.17525,3],[22.29492,114.17461,0],[22.29474,114.17377,3]],"to_converted":["22.294721260","114.173777807"]},"896-724":{"type":"URBAN ROAD","from_e":"834264.546","from_n":"816083.739","to":"724","from_converted":["22.283635378","114.157433844"],"region":"HK","to_e":"834148.783","from":"896","to_n":"816250.647","name":"896-724","route":[[22.28363,114.15743,3],[22.28478,114.15649,0],[22.28514,114.15631,3]],"to_converted":["22.285142525","114.156310318"]},"50079-50076":{"type":"MAJOR ROUTE","from_e":"836349.205","from_n":"815690.862","to":"50076","from_converted":["22.280088605","114.177662308"],"region":"HK","to_e":"836551.318","from":"50079","to_n":"815844.419","name":"50079-50076","route":[[22.28007,114.17765,3],[22.28026,114.17742,0],[22.28088,114.17724,1],[22.28067,114.1745,1],[22.28058,114.17456,0],[22.27979,114.17468,0],[22.27964,114.17485,1],[22.27952,114.17516,0],[22.27964,114.1762,1],[22.27978,114.1769,0],[22.27996,114.1775,0],[22.28046,114.17866,0],[22.2807,114.17906,0],[22.28104,114.17935,0],[22.28147,114.17963,3]],"to_converted":["22.281475300","114.179623489"]},"50076-7881":{"type":"MAJOR ROUTE","from_e":"836551.318","from_n":"815844.419","to":"7881","from_converted":["22.281475300","114.179623489"],"region":"HK","to_e":"836592.753","from":"50076","to_n":"815897.731","name":"50076-7881","route":[[22.28147,114.17963,3],[22.28173,114.17981,0],[22.28192,114.18005,3]],"to_converted":["22.281956734","114.180025559"]},"3488-3489":{"type":"URBAN ROAD","from_e":"836967.085","from_n":"820564.744","to":"3489","from_converted":["22.324102608","114.183659894"],"region":"K","to_e":"837168.318","from":"3488","to_n":"820663.995","name":"3488-3489","route":[[22.32408,114.1837,3],[22.32497,114.18564,0],[22.325,114.18563,3]],"to_converted":["22.324998809","114.185613177"]},"4647-46478":{"type":"MAJOR ROUTE","from_e":"836609.24","from_n":"814749.535","to":"46478","from_converted":["22.271587784","114.180185291"],"region":"HK","to_e":"836600.096","from":"4647","to_n":"814778.361","name":"4647-46478","route":[[22.27159,114.1802,3],[22.27185,114.18011,3]],"to_converted":["22.271848104","114.180096576"]},"4651-4631":{"type":"MAJOR ROUTE","from_e":"836884.007","from_n":"816087.665","to":"4631","from_converted":["22.283671879","114.182851781"],"region":"HK","to_e":"836599.836","from":"4651","to_n":"818132.347","name":"4651-4631","route":[[22.28365,114.18289,3],[22.28421,114.18314,0],[22.28468,114.18315,0],[22.30089,114.18036,0],[22.30128,114.18023,0],[22.30168,114.18003,0],[22.30204,114.17997,1],[22.30245,114.18003,0],[22.30266,114.18012,0],[22.30346,114.18063,0],[22.30529,114.18142,0],[22.30549,114.18146,1],[22.30584,114.18142,0],[22.30606,114.18133,0],[22.30629,114.1807,1],[22.30618,114.18025,0],[22.30583,114.17972,0],[22.3057,114.17941,0],[22.30559,114.17896,0],[22.30536,114.17863,1],[22.3042,114.17825,0],[22.30384,114.17807,0],[22.303,114.1773,1],[22.30237,114.17874,0],[22.30219,114.17965,0],[22.30216,114.1801,3]],"to_converted":["22.302136712","114.180094757"]},"3498-3499":{"type":"URBAN ROAD","from_e":"835269.643","from_n":"819039.869","to":"3499","from_converted":["22.310331934","114.167184969"],"region":"K","to_e":"835203.267","from":"3498","to_n":"819239.124","name":"3498-3499","route":[[22.31033,114.16719,3],[22.31202,114.16688,0],[22.31216,114.16675,0],[22.31215,114.16654,3]],"to_converted":["22.312131287","114.166540636"]},"788-868":{"route":[[22.28176,114.18016,3],[22.28187,114.18036,0],[22.28183,114.1809,3]],"name":"788-868","region":"HK","to_n":"815883.302","from":"788","to_e":"836682.388","to_converted":["22.281826412","114.180895318"],"to":"868","from_n":"815875.71","type":"MAJOR ROUTE","from_converted":["22.281757868","114.180158549"],"from_e":"836606.459"}}
@@ -1,25 +1,17 @@
1
1
  require "rubygems"
2
- require "test/unit"
2
+ require "minitest/autorun"
3
+
4
+ $LOAD_PATH << "./lib"
3
5
  require "hk_geo"
4
6
 
5
- class TestHkGeo < Test::Unit::TestCase
7
+ class TestHkGeo < MiniTest::Unit::TestCase
6
8
  def test_fetch
7
9
  result = HkGeo::Converter.convert("835352.749", "815640.774")
8
- assert_not_nil(result)
9
- assert_equal("22.457521648", result[0])
10
- assert_equal("113.976469709", result[1])
10
+ assert_equal("22.457521619", result[0])
11
+ assert_equal("113.976469702", result[1])
11
12
 
12
13
  result = HkGeo::Converter.convert("835352.749", "815640.774", HkGeo::SYSTEM_HK80, HkGeo::SYSTEM_ITRF96, HkGeo::UNIT_DM)
13
- assert_not_nil(result)
14
- assert_equal("22.2745130", result[0])
15
- assert_equal("113.5858818", result[1])
16
- end
17
-
18
- def test_route
19
- result1 = HkGeo::Converter.convert("834038.674", "816345.067")
20
- result2 = HkGeo::Converter.convert("833862.7", "816441.553")
21
-
22
- data = HkGeo::RouteFinder.route(result1.join(","), result2.join(","))
23
- puts data.inspect
14
+ assert_equal("22.27 451297", result[0])
15
+ assert_equal("113.58 588182", result[1])
24
16
  end
25
17
  end
metadata CHANGED
@@ -1,94 +1,145 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: hk_geo
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Francis Chong
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-06-24 00:00:00 +08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: hoe
11
+ date: 2013-07-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
23
21
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 35
30
- segments:
31
- - 2
32
- - 9
33
- - 4
34
- version: 2.9.4
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
35
34
  type: :development
36
- version_requirements: *id001
37
- description: A Geo location conversion API for HK.
38
- email:
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mechanize
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rest-client
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: nayutaya-googlemaps-polyline
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: geolocation transormation api for hk.
98
+ email:
39
99
  - francis@ignition.hk
40
100
  executables: []
41
-
42
101
  extensions: []
43
-
44
- extra_rdoc_files:
45
- - Manifest.txt
46
- - README.txt
47
- - History.txt
48
- files:
49
- - Manifest.txt
50
- - README.txt
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - Gemfile
51
106
  - History.txt
107
+ - LICENSE.txt
108
+ - README.md
52
109
  - Rakefile
53
- - LICENSE
110
+ - data/.DS_Store
111
+ - data/data.csv
112
+ - hk_geo.gemspec
54
113
  - lib/hk_geo.rb
55
114
  - lib/hk_geo/converter.rb
115
+ - lib/hk_geo/route_finder.rb
116
+ - lib/hk_geo/version.rb
117
+ - lib/tasks/route_finder.rb
118
+ - output/route.json
56
119
  - test/test_hk_geo.rb
57
- - .gemtest
58
- has_rdoc: true
59
- homepage:
60
- licenses: []
61
-
120
+ homepage: https://github.com/siuying/hk_geo
121
+ licenses:
122
+ - MIT
123
+ metadata: {}
62
124
  post_install_message:
63
- rdoc_options:
64
- - --main
65
- - README.txt
66
- require_paths:
125
+ rdoc_options: []
126
+ require_paths:
67
127
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
- version: "0"
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
86
138
  requirements: []
87
-
88
- rubyforge_project: hk_geo
89
- rubygems_version: 1.6.2
139
+ rubyforge_project:
140
+ rubygems_version: 2.0.3
90
141
  signing_key:
91
- specification_version: 3
92
- summary: A Geo location conversion API for HK.
93
- test_files:
142
+ specification_version: 4
143
+ summary: geolocation transormation api for hk.
144
+ test_files:
94
145
  - test/test_hk_geo.rb
data/.gemtest DELETED
File without changes
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2011 Francis Chong
2
-
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
@@ -1,7 +0,0 @@
1
- Manifest.txt
2
- README.txt
3
- History.txt
4
- Rakefile
5
- LICENSE
6
- lib/hk_geo.rb
7
- lib/hk_geo/converter.rb