This repository has been archived by the owner on Dec 27, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathguess_china.php
569 lines (568 loc) · 17.4 KB
/
guess_china.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
<?php
return [
'中国' => [
'id' => 1,
'divisions' => [
'中国' => ['id' => 1], // alias
'北京' => ['id' => 110000],
'天津' => ['id' => 120000],
'河北' => [
'id' => 130000,
'divisions' => [
'石家庄' => ['id' => 130100],
'鹿泉' => ['id' => 131000], // fix 130110
'唐山' => ['id' => 130200],
'秦皇岛' => ['id' => 130300],
'邯郸' => ['id' => 130400],
'邢台' => ['id' => 130500],
'保定' => ['id' => 130600],
'张家口' => ['id' => 130700],
'承德' => ['id' => 130800],
'沧州' => ['id' => 130900],
'任丘' => ['id' => 130900], // fix 130982
'廊坊' => ['id' => 131000],
'三河' => ['id' => 131000], // fix 131082
'衡水' => ['id' => 131100],
],
],
'山西' => [
'id' => 140000,
'divisions' => [
'太原' => ['id' => 140100],
'大同' => ['id' => 140200],
'阳泉' => ['id' => 140300],
'长治' => ['id' => 140400],
'晋城' => ['id' => 140500],
'朔州' => ['id' => 140600],
'晋中' => ['id' => 140700],
'介休' => ['id' => 140700], // fix 140781
'运城' => ['id' => 140800],
'忻州' => ['id' => 140900],
'临汾' => ['id' => 141000],
'吕梁' => ['id' => 141100],
'汾阳' => ['id' => 141100], // fix 141182
],
],
'内蒙古' => [
'id' => 150000,
'divisions' => [
'呼和浩特' => ['id' => 150100],
'包头' => ['id' => 150200],
'乌海' => ['id' => 150300],
'赤峰' => ['id' => 150400],
'通辽' => ['id' => 150500],
'鄂尔多斯' => ['id' => 150600],
'呼伦贝尔' => ['id' => 150700],
'巴彦淖尔' => ['id' => 150800],
'乌兰察布' => ['id' => 150900],
'兴安' => ['id' => 152200],
'锡林郭勒' => ['id' => 152500],
'阿拉善' => ['id' => 152900],
],
],
'辽宁' => [
'id' => 210000,
'divisions' => [
'沈阳' => ['id' => 210100],
'大连' => ['id' => 210200],
'鞍山' => ['id' => 210300],
'抚顺' => ['id' => 210400],
'本溪' => ['id' => 210500],
'丹东' => ['id' => 210600],
'锦州' => ['id' => 210700],
'营口' => ['id' => 210800],
'阜新' => ['id' => 210900],
'辽阳' => ['id' => 211000],
'盘锦' => ['id' => 211100],
'铁岭' => ['id' => 211200],
'朝阳' => ['id' => 211300],
'葫芦岛' => ['id' => 211400],
],
],
'吉林' => [
'id' => 220000,
'divisions' => [
'长春' => ['id' => 220100],
'吉林' => ['id' => 220200],
'四平' => ['id' => 220300],
'辽源' => ['id' => 220400],
'通化' => ['id' => 220500],
'白山' => ['id' => 220600],
'松原' => ['id' => 220700],
'白城' => ['id' => 220800],
'延边' => ['id' => 222400],
'延吉' => ['id' => 222400], // fix 222401
],
],
'黑龙江' => [
'id' => 230000,
'divisions' => [
'哈尔滨' => ['id' => 230100],
'双城' => ['id' => 230100], // 230182
'齐齐哈尔' => ['id' => 230200],
'鸡西' => ['id' => 230300],
'鹤岗' => ['id' => 230400],
'双鸭山' => ['id' => 230500],
'大庆' => ['id' => 230600],
'伊春' => ['id' => 230700],
'佳木斯' => ['id' => 230800],
'七台河' => ['id' => 230900],
'牡丹江' => ['id' => 231000],
'黑河' => ['id' => 231100],
'绥化' => ['id' => 231200],
'大兴安岭' => ['id' => 232700],
],
],
'上海' => ['id' => 310000],
'江苏' => [
'id' => 320000,
'divisions' => [
'南京' => ['id' => 320100],
'无锡' => ['id' => 320200],
'徐州' => ['id' => 320300],
'常州' => ['id' => 320400],
'苏州' => ['id' => 320500],
'常熟' => ['id' => 320500], // fix 320581
'张家港' => ['id' => 320500], // fix 320582
'昆山' => ['id' => 320500], // fix 320583
'太仓' => ['id' => 320500], // fix 320585
'南通' => ['id' => 320600],
'连云港' => ['id' => 320700],
'淮安' => ['id' => 320800],
'涟水' => ['id' => 320800], // fix 320826
'盐城' => ['id' => 320900],
'扬州' => ['id' => 321000],
'镇江' => ['id' => 321100],
'丹阳' => ['id' => 321100], // fix 321181
'句容' => ['id' => 321100], // fix 321183
'泰州' => ['id' => 321200],
'宿迁' => ['id' => 321300],
],
],
'浙江' => [
'id' => 330000,
'divisions' => [
'杭州' => ['id' => 330100],
'萧山' => ['id' => 330100], // fix 330109
'富阳' => ['id' => 330100], // fix 330183
'临安' => ['id' => 330100], // fix 330185
'宁波' => ['id' => 330200],
'余姚' => ['id' => 330200], // fix 330281
'温州' => ['id' => 330300],
'瑞安' => ['id' => 330300], // fix 330381
'乐清' => ['id' => 330300], // fix 330382
'嘉兴' => ['id' => 330400],
'海宁' => ['id' => 330400], // fix 330481
'湖州' => ['id' => 330500],
'绍兴' => ['id' => 330600],
'金华' => ['id' => 330700],
'义乌' => ['id' => 330700], // fix 330782
'东阳' => ['id' => 330700], // fix 330783
'衢州' => ['id' => 330800],
'舟山' => ['id' => 330900],
'台州' => ['id' => 331000],
'丽水' => ['id' => 331100],
],
],
'安徽' => [
'id' => 340000,
'divisions' => [
'合肥' => ['id' => 340100],
'巢湖' => ['id' => 340100],
'芜湖' => ['id' => 340200],
'蚌埠' => ['id' => 340300],
'淮南' => ['id' => 340400],
'马鞍山' => ['id' => 340500],
'淮北' => ['id' => 340600],
'铜陵' => ['id' => 340700],
'安庆' => ['id' => 340800],
'黄山' => ['id' => 341000],
'滁州' => ['id' => 341100],
'阜阳' => ['id' => 341200],
'宿州' => ['id' => 341300],
'六安' => ['id' => 341500],
'亳州' => ['id' => 341600],
'池州' => ['id' => 341700],
'宣城' => ['id' => 341800],
],
],
'福建' => [
'id' => 350000,
'divisions' => [
'福州' => ['id' => 350100],
'厦门' => ['id' => 350200],
'莆田' => ['id' => 350300],
'三明' => ['id' => 350400],
'永安' => ['id' => 350400], // fix 350481
'泉州' => ['id' => 350500],
'漳州' => ['id' => 350600],
'南平' => ['id' => 350700],
'龙岩' => ['id' => 350800],
'宁德' => ['id' => 350900],
],
],
'江西' => [
'id' => 360000,
'divisions' => [
'南昌' => ['id' => 360100],
'景德镇' => ['id' => 360200],
'萍乡' => ['id' => 360300],
'九江' => ['id' => 360400],
'新余' => ['id' => 360500],
'鹰潭' => ['id' => 360600],
'赣州' => ['id' => 360700],
'吉安' => ['id' => 360800],
'宜春' => ['id' => 360900],
'抚州' => ['id' => 361000],
'上饶' => ['id' => 361100],
],
],
'山东' => [
'id' => 370000,
'divisions' => [
'济南' => ['id' => 370100],
'章丘' => ['id' => 370100], // fix 370181
'青岛' => ['id' => 370200],
'胶州' => ['id' => 370200], // fix 370281
'淄博' => ['id' => 370300],
'枣庄' => ['id' => 370400],
'东营' => ['id' => 370500],
'烟台' => ['id' => 370600],
'莱阳' => ['id' => 370600], // fix 370682
'潍坊' => ['id' => 370700],
'诸城' => ['id' => 370700], // fix 370782
'青州' => ['id' => 370700], // fix 370781
'济宁' => ['id' => 370800],
'曲阜' => ['id' => 370800], // fix 370881
'泰安' => ['id' => 370900],
'威海' => ['id' => 371000],
'日照' => ['id' => 371100],
'莱芜' => ['id' => 371200],
'临沂' => ['id' => 371300],
'德州' => ['id' => 371400],
'聊城' => ['id' => 371500],
'滨州' => ['id' => 371600],
'菏泽' => ['id' => 371700],
],
],
'河南' => [
'id' => 410000,
'divisions' => [
'郑州' => ['id' => 410100],
'登封' => ['id' => 410100], // fix 410185
'开封' => ['id' => 410200],
'洛阳' => ['id' => 410300],
'平顶山' => ['id' => 410400],
'安阳' => ['id' => 410500],
'鹤壁' => ['id' => 410600],
'新乡' => ['id' => 410700],
'焦作' => ['id' => 410800],
'濮阳' => ['id' => 410900],
'许昌' => ['id' => 411000],
'漯河' => ['id' => 411100],
'三门峡' => ['id' => 411200],
'南阳' => ['id' => 411300],
'商丘' => ['id' => 411400],
'永城' => ['id' => 411400], // fix 411481
'信阳' => ['id' => 411500],
'周口' => ['id' => 411600],
'驻马店' => ['id' => 411700],
'济源' => ['id' => 419001],
],
],
'湖北' => [
'id' => 420000,
'divisions' => [
'武汉' => ['id' => 420100],
'黄石' => ['id' => 420200],
'十堰' => ['id' => 420300],
'宜昌' => ['id' => 420500],
'襄阳' => ['id' => 420600],
'襄樊' => ['id' => 420600], // alias
'鄂州' => ['id' => 420700],
'荆门' => ['id' => 420800],
'孝感' => ['id' => 420900],
'荆州' => ['id' => 421000],
'荆沙' => ['id' => 421000], // alias
'黄冈' => ['id' => 421100],
'咸宁' => ['id' => 421200],
'随州' => ['id' => 421300],
'恩施' => ['id' => 422800],
'仙桃' => ['id' => 429004],
'潜江' => ['id' => 429005],
'天门' => ['id' => 429006],
'神农架' => ['id' => 429021],
],
],
'湖南' => [
'id' => 430000,
'divisions' => [
'长沙' => ['id' => 430100],
'株洲' => ['id' => 430200],
'湘潭' => ['id' => 430300],
'衡阳' => ['id' => 430400],
'耒阳' => ['id' => 430400], // fix 430481
'邵阳' => ['id' => 430500],
'岳阳' => ['id' => 430600],
'常德' => ['id' => 430700],
'张家界' => ['id' => 430800],
'益阳' => ['id' => 430900],
'郴州' => ['id' => 431000],
'永州' => ['id' => 431100],
'怀化' => ['id' => 431200],
'娄底' => ['id' => 431300],
'湘西' => ['id' => 433100],
'吉首' => ['id' => 433100], // fix 433101
],
],
'广东' => [
'id' => 440000,
'divisions' => [
'广州' => ['id' => 440100],
'韶关' => ['id' => 440200],
'深圳' => ['id' => 440300],
'珠海' => ['id' => 440400],
'汕头' => ['id' => 440500],
'佛山' => ['id' => 440600],
'南海' => ['id' => 440600], // fix 440605
'顺德' => ['id' => 440600], // fix 440606
'江门' => ['id' => 440700],
'湛江' => ['id' => 440800],
'茂名' => ['id' => 440900],
'高州' => ['id' => 440900], // fix 440981
'肇庆' => ['id' => 441200],
'惠州' => ['id' => 441300],
'梅州' => ['id' => 441400],
'汕尾' => ['id' => 441500],
'河源' => ['id' => 441600],
'阳江' => ['id' => 441700],
'清远' => ['id' => 441800],
'东莞' => ['id' => 441900],
'中山' => ['id' => 442000],
'潮州' => ['id' => 445100],
'揭阳' => ['id' => 445200],
'普宁' => ['id' => 445200], // fix 445281
'云浮' => ['id' => 445300],
],
],
'广西' => [
'id' => 450000,
'divisions' => [
'南宁' => ['id' => 450100],
'柳州' => ['id' => 450200],
'桂林' => ['id' => 450300],
'梧州' => ['id' => 450400],
'北海' => ['id' => 450500],
'防城港' => ['id' => 450600],
'钦州' => ['id' => 450700],
'贵港' => ['id' => 450800],
'玉林' => ['id' => 450900],
'百色' => ['id' => 451000],
'贺州' => ['id' => 451100],
'河池' => ['id' => 451200],
'来宾' => ['id' => 451300],
'崇左' => ['id' => 451400],
],
],
'海南' => [
'id' => 460000,
'divisions' => [
'海口' => ['id' => 460100],
'三亚' => ['id' => 460200],
'三沙' => ['id' => 460300],
'五指山' => ['id' => 469001],
'琼海' => ['id' => 469002],
'儋州' => ['id' => 469003],
'文昌' => ['id' => 469005],
'万宁' => ['id' => 469006],
'东方' => ['id' => 469007],
'定安' => ['id' => 469021],
'屯昌' => ['id' => 469022],
'澄迈' => ['id' => 469023],
'临高' => ['id' => 469024],
'白沙' => ['id' => 469025],
'昌江' => ['id' => 469026],
'乐东' => ['id' => 469027],
'陵水' => ['id' => 469028],
'保亭' => ['id' => 469029],
'琼中' => ['id' => 469030],
],
],
'重庆' => ['id' => 500000],
'四川' => [
'id' => 510000,
'divisions' => [
'成都' => ['id' => 510100],
'都江堰' => ['id' => 510100], // fix 510181
'自贡' => ['id' => 510300],
'攀枝花' => ['id' => 510400],
'泸州' => ['id' => 510500],
'德阳' => ['id' => 510600],
'广汉' => ['id' => 510600],
'绵阳' => ['id' => 510700],
'江油' => ['id' => 510700], // fix 510781
'广元' => ['id' => 510800],
'遂宁' => ['id' => 510900],
'内江' => ['id' => 511000],
'乐山' => ['id' => 511100],
'南充' => ['id' => 511300],
'眉山' => ['id' => 511400],
'宜宾' => ['id' => 511500],
'广安' => ['id' => 511600],
'达州' => ['id' => 511700],
'雅安' => ['id' => 511800],
'巴中' => ['id' => 511900],
'资阳' => ['id' => 512000],
'阿坝' => ['id' => 513200],
'甘孜' => ['id' => 513300],
'康定' => ['id' => 513300], // fix 513321
'凉山' => ['id' => 513400],
'西昌' => ['id' => 513400], // fix 513401
],
],
'贵州' => [
'id' => 520000,
'divisions' => [
'贵阳' => ['id' => 520100],
'六盘水' => ['id' => 520200],
'遵义' => ['id' => 520300],
'安顺' => ['id' => 520400],
'毕节' => ['id' => 520500],
'铜仁' => ['id' => 520600],
'黔西南' => ['id' => 522300],
'兴义' => ['id' => 522300], // fix 522301
'黔东南' => ['id' => 522600],
'凯里' => ['id' => 522600], // fix 522601
'黔南' => ['id' => 522700],
'都匀' => ['id' => 522700], // fix 522701
],
],
'云南' => [
'id' => 530000,
'divisions' => [
'昆明' => ['id' => 530100],
'曲靖' => ['id' => 530300],
'玉溪' => ['id' => 530400],
'保山' => ['id' => 530500],
'昭通' => ['id' => 530600],
'丽江' => ['id' => 530700],
'普洱' => ['id' => 530800],
'临沧' => ['id' => 530900],
'楚雄' => ['id' => 532300],
'红河' => ['id' => 532500],
'蒙自' => ['id' => 532500], // fix 532503
'文山' => ['id' => 532600],
'西双版纳' => ['id' => 532800],
'大理' => ['id' => 532900],
'德宏' => ['id' => 533100],
'怒江' => ['id' => 533300],
'迪庆' => ['id' => 533400],
],
],
'西藏' => [
'id' => 540000,
'divisions' => [
'拉萨' => ['id' => 540100],
'日喀则' => ['id' => 540200],
'昌都' => ['id' => 542100],
'山南' => ['id' => 542200],
'那曲' => ['id' => 542400],
'阿里' => ['id' => 542500],
'林芝' => ['id' => 542600],
],
],
'陕西' => [
'id' => 610000,
'divisions' => [
'西安' => ['id' => 610100],
'铜川' => ['id' => 610200],
'宝鸡' => ['id' => 610300],
'咸阳' => ['id' => 610400],
'渭南' => ['id' => 610500],
'延安' => ['id' => 610600],
'汉中' => ['id' => 610700],
'榆林' => ['id' => 610800],
'安康' => ['id' => 610900],
'商洛' => ['id' => 611000],
],
],
'甘肃' => [
'id' => 620000,
'divisions' => [
'兰州' => ['id' => 620100],
'榆中' => ['id' => 620100], // fix 620123
'嘉峪关' => ['id' => 620200],
'金昌' => ['id' => 620300],
'白银' => ['id' => 620400],
'天水' => ['id' => 620500],
'武威' => ['id' => 620600],
'张掖' => ['id' => 620700],
'平凉' => ['id' => 620800],
'酒泉' => ['id' => 620900],
'庆阳' => ['id' => 621000],
'定西' => ['id' => 621100],
'陇南' => ['id' => 621200],
'临夏' => ['id' => 622900],
'甘南' => ['id' => 623000],
'合作' => ['id' => 623000], // fix 623001
],
],
'青海' => [
'id' => 630000,
'divisions' => [
'西宁' => ['id' => 630100],
'海东' => ['id' => 630200],
'海北' => ['id' => 632200],
'黄南' => ['id' => 632300],
'海南' => ['id' => 632500],
'果洛' => ['id' => 632600],
'玉树' => ['id' => 632700],
'海西' => ['id' => 632800],
],
],
'宁夏' => [
'id' => 640000,
'divisions' => [
'银川' => ['id' => 640100],
'石嘴山' => ['id' => 640200],
'吴忠' => ['id' => 640300],
'固原' => ['id' => 640400],
'中卫' => ['id' => 640500],
],
],
'新疆' => [
'id' => 650000,
'divisions' => [
'乌鲁木齐' => ['id' => 650100],
'克拉玛依' => ['id' => 650200],
'吐鲁番' => ['id' => 652100],
'哈密' => ['id' => 652200],
'昌吉' => ['id' => 652300],
'博尔塔拉' => ['id' => 652700],
'巴音郭楞' => ['id' => 652800],
'库尔勒' => ['id' => 652800], // fix 652801
'阿克苏' => ['id' => 652900],
'克孜勒苏' => ['id' => 653000],
'喀什' => ['id' => 653100],
'和田' => ['id' => 653200],
'伊犁' => ['id' => 654000],
'伊宁' => ['id' => 654000], // fix 654002, 654021
'塔城' => ['id' => 654200],
'阿勒泰' => ['id' => 654300],
'石河子' => ['id' => 659001],
'阿拉尔' => ['id' => 659002],
'图木舒克' => ['id' => 659003],
'五家渠' => ['id' => 659004],
'北屯' => ['id' => 659005],
'铁门关' => ['id' => 659006],
'双河' => ['id' => 659007],
'可克达拉' => ['id' => 659008],
],
],
'台湾' => ['id' => 710000],
'台省' => ['id' => 710000], // alias
'香港' => ['id' => 810000],
'澳门' => ['id' => 820000],
],
],
];