Skip to content

Instantly share code, notes, and snippets.

@nczz
Created May 17, 2023 15:09
Show Gist options
  • Save nczz/ed0960cd14629b729466a6842e27bb57 to your computer and use it in GitHub Desktop.
Save nczz/ed0960cd14629b729466a6842e27bb57 to your computer and use it in GitHub Desktop.
引用 https://github.com/yyc1217/twzipcode-data/ 這專案中的台灣郵遞區號,改寫成 PHP 陣列,並補上「離島」與「本島」的註記(outlying -> 0 為本島, 1 為離島)
<?php
$twzipcode_arr = array(
0 => array(
'zipcode' => 100,
'county' => '臺北市',
'city' => '中正區',
'outlying' => 0,
),
1 => array(
'zipcode' => 103,
'county' => '臺北市',
'city' => '大同區',
'outlying' => 0,
),
2 => array(
'zipcode' => 104,
'county' => '臺北市',
'city' => '中山區',
'outlying' => 0,
),
3 => array(
'zipcode' => 105,
'county' => '臺北市',
'city' => '松山區',
'outlying' => 0,
),
4 => array(
'zipcode' => 106,
'county' => '臺北市',
'city' => '大安區',
'outlying' => 0,
),
5 => array(
'zipcode' => 108,
'county' => '臺北市',
'city' => '萬華區',
'outlying' => 0,
),
6 => array(
'zipcode' => 110,
'county' => '臺北市',
'city' => '信義區',
'outlying' => 0,
),
7 => array(
'zipcode' => 111,
'county' => '臺北市',
'city' => '士林區',
'outlying' => 0,
),
8 => array(
'zipcode' => 112,
'county' => '臺北市',
'city' => '北投區',
'outlying' => 0,
),
9 => array(
'zipcode' => 114,
'county' => '臺北市',
'city' => '內湖區',
'outlying' => 0,
),
10 => array(
'zipcode' => 115,
'county' => '臺北市',
'city' => '南港區',
'outlying' => 0,
),
11 => array(
'zipcode' => 116,
'county' => '臺北市',
'city' => '文山區',
'outlying' => 0,
),
12 => array(
'zipcode' => 200,
'county' => '基隆市',
'city' => '仁愛區',
'outlying' => 0,
),
13 => array(
'zipcode' => 201,
'county' => '基隆市',
'city' => '信義區',
'outlying' => 0,
),
14 => array(
'zipcode' => 202,
'county' => '基隆市',
'city' => '中正區',
'outlying' => 0,
),
15 => array(
'zipcode' => 203,
'county' => '基隆市',
'city' => '中山區',
'outlying' => 0,
),
16 => array(
'zipcode' => 204,
'county' => '基隆市',
'city' => '安樂區',
'outlying' => 0,
),
17 => array(
'zipcode' => 205,
'county' => '基隆市',
'city' => '暖暖區',
'outlying' => 0,
),
18 => array(
'zipcode' => 206,
'county' => '基隆市',
'city' => '七堵區',
'outlying' => 0,
),
19 => array(
'zipcode' => 207,
'county' => '新北市',
'city' => '萬里區',
'outlying' => 0,
),
20 => array(
'zipcode' => 208,
'county' => '新北市',
'city' => '金山區',
'outlying' => 0,
),
21 => array(
'zipcode' => 220,
'county' => '新北市',
'city' => '板橋區',
'outlying' => 0,
),
22 => array(
'zipcode' => 221,
'county' => '新北市',
'city' => '汐止區',
'outlying' => 0,
),
23 => array(
'zipcode' => 222,
'county' => '新北市',
'city' => '深坑區',
'outlying' => 0,
),
24 => array(
'zipcode' => 223,
'county' => '新北市',
'city' => '石碇區',
'outlying' => 0,
),
25 => array(
'zipcode' => 224,
'county' => '新北市',
'city' => '瑞芳區',
'outlying' => 0,
),
26 => array(
'zipcode' => 226,
'county' => '新北市',
'city' => '平溪區',
'outlying' => 0,
),
27 => array(
'zipcode' => 227,
'county' => '新北市',
'city' => '雙溪區',
'outlying' => 0,
),
28 => array(
'zipcode' => 228,
'county' => '新北市',
'city' => '貢寮區',
'outlying' => 0,
),
29 => array(
'zipcode' => 231,
'county' => '新北市',
'city' => '新店區',
'outlying' => 0,
),
30 => array(
'zipcode' => 232,
'county' => '新北市',
'city' => '坪林區',
'outlying' => 0,
),
31 => array(
'zipcode' => 233,
'county' => '新北市',
'city' => '烏來區',
'outlying' => 0,
),
32 => array(
'zipcode' => 234,
'county' => '新北市',
'city' => '永和區',
'outlying' => 0,
),
33 => array(
'zipcode' => 235,
'county' => '新北市',
'city' => '中和區',
'outlying' => 0,
),
34 => array(
'zipcode' => 236,
'county' => '新北市',
'city' => '土城區',
'outlying' => 0,
),
35 => array(
'zipcode' => 237,
'county' => '新北市',
'city' => '三峽區',
'outlying' => 0,
),
36 => array(
'zipcode' => 238,
'county' => '新北市',
'city' => '樹林區',
'outlying' => 0,
),
37 => array(
'zipcode' => 239,
'county' => '新北市',
'city' => '鶯歌區',
'outlying' => 0,
),
38 => array(
'zipcode' => 241,
'county' => '新北市',
'city' => '三重區',
'outlying' => 0,
),
39 => array(
'zipcode' => 242,
'county' => '新北市',
'city' => '新莊區',
'outlying' => 0,
),
40 => array(
'zipcode' => 243,
'county' => '新北市',
'city' => '泰山區',
'outlying' => 0,
),
41 => array(
'zipcode' => 244,
'county' => '新北市',
'city' => '林口區',
'outlying' => 0,
),
42 => array(
'zipcode' => 247,
'county' => '新北市',
'city' => '蘆洲區',
'outlying' => 0,
),
43 => array(
'zipcode' => 248,
'county' => '新北市',
'city' => '五股區',
'outlying' => 0,
),
44 => array(
'zipcode' => 249,
'county' => '新北市',
'city' => '八里區',
'outlying' => 0,
),
45 => array(
'zipcode' => 251,
'county' => '新北市',
'city' => '淡水區',
'outlying' => 0,
),
46 => array(
'zipcode' => 252,
'county' => '新北市',
'city' => '三芝區',
'outlying' => 0,
),
47 => array(
'zipcode' => 253,
'county' => '新北市',
'city' => '石門區',
'outlying' => 0,
),
48 => array(
'zipcode' => 260,
'county' => '宜蘭縣',
'city' => '宜蘭市',
'outlying' => 0,
),
49 => array(
'zipcode' => 261,
'county' => '宜蘭縣',
'city' => '頭城鎮',
'outlying' => 0,
),
50 => array(
'zipcode' => 262,
'county' => '宜蘭縣',
'city' => '礁溪鄉',
'outlying' => 0,
),
51 => array(
'zipcode' => 263,
'county' => '宜蘭縣',
'city' => '壯圍鄉',
'outlying' => 0,
),
52 => array(
'zipcode' => 264,
'county' => '宜蘭縣',
'city' => '員山鄉',
'outlying' => 0,
),
53 => array(
'zipcode' => 265,
'county' => '宜蘭縣',
'city' => '羅東鎮',
'outlying' => 0,
),
54 => array(
'zipcode' => 266,
'county' => '宜蘭縣',
'city' => '三星鄉',
'outlying' => 0,
),
55 => array(
'zipcode' => 267,
'county' => '宜蘭縣',
'city' => '大同鄉',
'outlying' => 0,
),
56 => array(
'zipcode' => 268,
'county' => '宜蘭縣',
'city' => '五結鄉',
'outlying' => 0,
),
57 => array(
'zipcode' => 269,
'county' => '宜蘭縣',
'city' => '冬山鄉',
'outlying' => 0,
),
58 => array(
'zipcode' => 270,
'county' => '宜蘭縣',
'city' => '蘇澳鎮',
'outlying' => 0,
),
59 => array(
'zipcode' => 272,
'county' => '宜蘭縣',
'city' => '南澳鄉',
'outlying' => 0,
),
60 => array(
'zipcode' => 290,
'county' => '宜蘭縣',
'city' => '釣魚臺列嶼',
'outlying' => 0,
),
61 => array(
'zipcode' => 300,
'county' => '新竹市',
'city' => '東區',
'outlying' => 0,
),
62 => array(
'zipcode' => 300,
'county' => '新竹市',
'city' => '北區',
'outlying' => 0,
),
63 => array(
'zipcode' => 300,
'county' => '新竹市',
'city' => '香山區',
'outlying' => 0,
),
64 => array(
'zipcode' => 302,
'county' => '新竹縣',
'city' => '竹北市',
'outlying' => 0,
),
65 => array(
'zipcode' => 303,
'county' => '新竹縣',
'city' => '湖口鄉',
'outlying' => 0,
),
66 => array(
'zipcode' => 304,
'county' => '新竹縣',
'city' => '新豐鄉',
'outlying' => 0,
),
67 => array(
'zipcode' => 305,
'county' => '新竹縣',
'city' => '新埔鎮',
'outlying' => 0,
),
68 => array(
'zipcode' => 306,
'county' => '新竹縣',
'city' => '關西鎮',
'outlying' => 0,
),
69 => array(
'zipcode' => 307,
'county' => '新竹縣',
'city' => '芎林鄉',
'outlying' => 0,
),
70 => array(
'zipcode' => 308,
'county' => '新竹縣',
'city' => '寶山鄉',
'outlying' => 0,
),
71 => array(
'zipcode' => 310,
'county' => '新竹縣',
'city' => '竹東鎮',
'outlying' => 0,
),
72 => array(
'zipcode' => 311,
'county' => '新竹縣',
'city' => '五峰鄉',
'outlying' => 0,
),
73 => array(
'zipcode' => 312,
'county' => '新竹縣',
'city' => '橫山鄉',
'outlying' => 0,
),
74 => array(
'zipcode' => 313,
'county' => '新竹縣',
'city' => '尖石鄉',
'outlying' => 0,
),
75 => array(
'zipcode' => 314,
'county' => '新竹縣',
'city' => '北埔鄉',
'outlying' => 0,
),
76 => array(
'zipcode' => 315,
'county' => '新竹縣',
'city' => '峨眉鄉',
'outlying' => 0,
),
77 => array(
'zipcode' => 320,
'county' => '桃園市',
'city' => '中壢區',
'outlying' => 0,
),
78 => array(
'zipcode' => 324,
'county' => '桃園市',
'city' => '平鎮區',
'outlying' => 0,
),
79 => array(
'zipcode' => 325,
'county' => '桃園市',
'city' => '龍潭區',
'outlying' => 0,
),
80 => array(
'zipcode' => 326,
'county' => '桃園市',
'city' => '楊梅區',
'outlying' => 0,
),
81 => array(
'zipcode' => 327,
'county' => '桃園市',
'city' => '新屋區',
'outlying' => 0,
),
82 => array(
'zipcode' => 328,
'county' => '桃園市',
'city' => '觀音區',
'outlying' => 0,
),
83 => array(
'zipcode' => 330,
'county' => '桃園市',
'city' => '桃園區',
'outlying' => 0,
),
84 => array(
'zipcode' => 333,
'county' => '桃園市',
'city' => '龜山區',
'outlying' => 0,
),
85 => array(
'zipcode' => 334,
'county' => '桃園市',
'city' => '八德區',
'outlying' => 0,
),
86 => array(
'zipcode' => 335,
'county' => '桃園市',
'city' => '大溪區',
'outlying' => 0,
),
87 => array(
'zipcode' => 336,
'county' => '桃園市',
'city' => '復興區',
'outlying' => 0,
),
88 => array(
'zipcode' => 337,
'county' => '桃園市',
'city' => '大園區',
'outlying' => 0,
),
89 => array(
'zipcode' => 338,
'county' => '桃園市',
'city' => '蘆竹區',
'outlying' => 0,
),
90 => array(
'zipcode' => 350,
'county' => '苗栗縣',
'city' => '竹南鎮',
'outlying' => 0,
),
91 => array(
'zipcode' => 351,
'county' => '苗栗縣',
'city' => '頭份市',
'outlying' => 0,
),
92 => array(
'zipcode' => 352,
'county' => '苗栗縣',
'city' => '三灣鄉',
'outlying' => 0,
),
93 => array(
'zipcode' => 353,
'county' => '苗栗縣',
'city' => '南庄鄉',
'outlying' => 0,
),
94 => array(
'zipcode' => 354,
'county' => '苗栗縣',
'city' => '獅潭鄉',
'outlying' => 0,
),
95 => array(
'zipcode' => 356,
'county' => '苗栗縣',
'city' => '後龍鎮',
'outlying' => 0,
),
96 => array(
'zipcode' => 357,
'county' => '苗栗縣',
'city' => '通霄鎮',
'outlying' => 0,
),
97 => array(
'zipcode' => 358,
'county' => '苗栗縣',
'city' => '苑裡鎮',
'outlying' => 0,
),
98 => array(
'zipcode' => 360,
'county' => '苗栗縣',
'city' => '苗栗市',
'outlying' => 0,
),
99 => array(
'zipcode' => 361,
'county' => '苗栗縣',
'city' => '造橋鄉',
'outlying' => 0,
),
100 => array(
'zipcode' => 362,
'county' => '苗栗縣',
'city' => '頭屋鄉',
'outlying' => 0,
),
101 => array(
'zipcode' => 363,
'county' => '苗栗縣',
'city' => '公館鄉',
'outlying' => 0,
),
102 => array(
'zipcode' => 364,
'county' => '苗栗縣',
'city' => '大湖鄉',
'outlying' => 0,
),
103 => array(
'zipcode' => 365,
'county' => '苗栗縣',
'city' => '泰安鄉',
'outlying' => 0,
),
104 => array(
'zipcode' => 366,
'county' => '苗栗縣',
'city' => '銅鑼鄉',
'outlying' => 0,
),
105 => array(
'zipcode' => 367,
'county' => '苗栗縣',
'city' => '三義鄉',
'outlying' => 0,
),
106 => array(
'zipcode' => 368,
'county' => '苗栗縣',
'city' => '西湖鄉',
'outlying' => 0,
),
107 => array(
'zipcode' => 369,
'county' => '苗栗縣',
'city' => '卓蘭鎮',
'outlying' => 0,
),
108 => array(
'zipcode' => 400,
'county' => '臺中市',
'city' => '中區',
'outlying' => 0,
),
109 => array(
'zipcode' => 401,
'county' => '臺中市',
'city' => '東區',
'outlying' => 0,
),
110 => array(
'zipcode' => 402,
'county' => '臺中市',
'city' => '南區',
'outlying' => 0,
),
111 => array(
'zipcode' => 403,
'county' => '臺中市',
'city' => '西區',
'outlying' => 0,
),
112 => array(
'zipcode' => 404,
'county' => '臺中市',
'city' => '北區',
'outlying' => 0,
),
113 => array(
'zipcode' => 406,
'county' => '臺中市',
'city' => '北屯區',
'outlying' => 0,
),
114 => array(
'zipcode' => 407,
'county' => '臺中市',
'city' => '西屯區',
'outlying' => 0,
),
115 => array(
'zipcode' => 408,
'county' => '臺中市',
'city' => '南屯區',
'outlying' => 0,
),
116 => array(
'zipcode' => 411,
'county' => '臺中市',
'city' => '太平區',
'outlying' => 0,
),
117 => array(
'zipcode' => 412,
'county' => '臺中市',
'city' => '大里區',
'outlying' => 0,
),
118 => array(
'zipcode' => 413,
'county' => '臺中市',
'city' => '霧峰區',
'outlying' => 0,
),
119 => array(
'zipcode' => 414,
'county' => '臺中市',
'city' => '烏日區',
'outlying' => 0,
),
120 => array(
'zipcode' => 420,
'county' => '臺中市',
'city' => '豐原區',
'outlying' => 0,
),
121 => array(
'zipcode' => 421,
'county' => '臺中市',
'city' => '后里區',
'outlying' => 0,
),
122 => array(
'zipcode' => 422,
'county' => '臺中市',
'city' => '石岡區',
'outlying' => 0,
),
123 => array(
'zipcode' => 423,
'county' => '臺中市',
'city' => '東勢區',
'outlying' => 0,
),
124 => array(
'zipcode' => 424,
'county' => '臺中市',
'city' => '和平區',
'outlying' => 0,
),
125 => array(
'zipcode' => 426,
'county' => '臺中市',
'city' => '新社區',
'outlying' => 0,
),
126 => array(
'zipcode' => 427,
'county' => '臺中市',
'city' => '潭子區',
'outlying' => 0,
),
127 => array(
'zipcode' => 428,
'county' => '臺中市',
'city' => '大雅區',
'outlying' => 0,
),
128 => array(
'zipcode' => 429,
'county' => '臺中市',
'city' => '神岡區',
'outlying' => 0,
),
129 => array(
'zipcode' => 432,
'county' => '臺中市',
'city' => '大肚區',
'outlying' => 0,
),
130 => array(
'zipcode' => 433,
'county' => '臺中市',
'city' => '沙鹿區',
'outlying' => 0,
),
131 => array(
'zipcode' => 434,
'county' => '臺中市',
'city' => '龍井區',
'outlying' => 0,
),
132 => array(
'zipcode' => 435,
'county' => '臺中市',
'city' => '梧棲區',
'outlying' => 0,
),
133 => array(
'zipcode' => 436,
'county' => '臺中市',
'city' => '清水區',
'outlying' => 0,
),
134 => array(
'zipcode' => 437,
'county' => '臺中市',
'city' => '大甲區',
'outlying' => 0,
),
135 => array(
'zipcode' => 438,
'county' => '臺中市',
'city' => '外埔區',
'outlying' => 0,
),
136 => array(
'zipcode' => 439,
'county' => '臺中市',
'city' => '大安區',
'outlying' => 0,
),
137 => array(
'zipcode' => 500,
'county' => '彰化縣',
'city' => '彰化市',
'outlying' => 0,
),
138 => array(
'zipcode' => 502,
'county' => '彰化縣',
'city' => '芬園鄉',
'outlying' => 0,
),
139 => array(
'zipcode' => 503,
'county' => '彰化縣',
'city' => '花壇鄉',
'outlying' => 0,
),
140 => array(
'zipcode' => 504,
'county' => '彰化縣',
'city' => '秀水鄉',
'outlying' => 0,
),
141 => array(
'zipcode' => 505,
'county' => '彰化縣',
'city' => '鹿港鎮',
'outlying' => 0,
),
142 => array(
'zipcode' => 506,
'county' => '彰化縣',
'city' => '福興鄉',
'outlying' => 0,
),
143 => array(
'zipcode' => 507,
'county' => '彰化縣',
'city' => '線西鄉',
'outlying' => 0,
),
144 => array(
'zipcode' => 508,
'county' => '彰化縣',
'city' => '和美鎮',
'outlying' => 0,
),
145 => array(
'zipcode' => 509,
'county' => '彰化縣',
'city' => '伸港鄉',
'outlying' => 0,
),
146 => array(
'zipcode' => 510,
'county' => '彰化縣',
'city' => '員林市',
'outlying' => 0,
),
147 => array(
'zipcode' => 511,
'county' => '彰化縣',
'city' => '社頭鄉',
'outlying' => 0,
),
148 => array(
'zipcode' => 512,
'county' => '彰化縣',
'city' => '永靖鄉',
'outlying' => 0,
),
149 => array(
'zipcode' => 513,
'county' => '彰化縣',
'city' => '埔心鄉',
'outlying' => 0,
),
150 => array(
'zipcode' => 514,
'county' => '彰化縣',
'city' => '溪湖鎮',
'outlying' => 0,
),
151 => array(
'zipcode' => 515,
'county' => '彰化縣',
'city' => '大村鄉',
'outlying' => 0,
),
152 => array(
'zipcode' => 516,
'county' => '彰化縣',
'city' => '埔鹽鄉',
'outlying' => 0,
),
153 => array(
'zipcode' => 520,
'county' => '彰化縣',
'city' => '田中鎮',
'outlying' => 0,
),
154 => array(
'zipcode' => 521,
'county' => '彰化縣',
'city' => '北斗鎮',
'outlying' => 0,
),
155 => array(
'zipcode' => 522,
'county' => '彰化縣',
'city' => '田尾鄉',
'outlying' => 0,
),
156 => array(
'zipcode' => 523,
'county' => '彰化縣',
'city' => '埤頭鄉',
'outlying' => 0,
),
157 => array(
'zipcode' => 524,
'county' => '彰化縣',
'city' => '溪州鄉',
'outlying' => 0,
),
158 => array(
'zipcode' => 525,
'county' => '彰化縣',
'city' => '竹塘鄉',
'outlying' => 0,
),
159 => array(
'zipcode' => 526,
'county' => '彰化縣',
'city' => '二林鎮',
'outlying' => 0,
),
160 => array(
'zipcode' => 527,
'county' => '彰化縣',
'city' => '大城鄉',
'outlying' => 0,
),
161 => array(
'zipcode' => 528,
'county' => '彰化縣',
'city' => '芳苑鄉',
'outlying' => 0,
),
162 => array(
'zipcode' => 530,
'county' => '彰化縣',
'city' => '二水鄉',
'outlying' => 0,
),
163 => array(
'zipcode' => 540,
'county' => '南投縣',
'city' => '南投市',
'outlying' => 0,
),
164 => array(
'zipcode' => 541,
'county' => '南投縣',
'city' => '中寮鄉',
'outlying' => 0,
),
165 => array(
'zipcode' => 542,
'county' => '南投縣',
'city' => '草屯鎮',
'outlying' => 0,
),
166 => array(
'zipcode' => 544,
'county' => '南投縣',
'city' => '國姓鄉',
'outlying' => 0,
),
167 => array(
'zipcode' => 545,
'county' => '南投縣',
'city' => '埔里鎮',
'outlying' => 0,
),
168 => array(
'zipcode' => 546,
'county' => '南投縣',
'city' => '仁愛鄉',
'outlying' => 0,
),
169 => array(
'zipcode' => 551,
'county' => '南投縣',
'city' => '名間鄉',
'outlying' => 0,
),
170 => array(
'zipcode' => 552,
'county' => '南投縣',
'city' => '集集鎮',
'outlying' => 0,
),
171 => array(
'zipcode' => 553,
'county' => '南投縣',
'city' => '水里鄉',
'outlying' => 0,
),
172 => array(
'zipcode' => 555,
'county' => '南投縣',
'city' => '魚池鄉',
'outlying' => 0,
),
173 => array(
'zipcode' => 556,
'county' => '南投縣',
'city' => '信義鄉',
'outlying' => 0,
),
174 => array(
'zipcode' => 557,
'county' => '南投縣',
'city' => '竹山鎮',
'outlying' => 0,
),
175 => array(
'zipcode' => 558,
'county' => '南投縣',
'city' => '鹿谷鄉',
'outlying' => 0,
),
176 => array(
'zipcode' => 600,
'county' => '嘉義市',
'city' => '東區',
'outlying' => 0,
),
177 => array(
'zipcode' => 600,
'county' => '嘉義市',
'city' => '西區',
'outlying' => 0,
),
178 => array(
'zipcode' => 602,
'county' => '嘉義縣',
'city' => '番路鄉',
'outlying' => 0,
),
179 => array(
'zipcode' => 603,
'county' => '嘉義縣',
'city' => '梅山鄉',
'outlying' => 0,
),
180 => array(
'zipcode' => 604,
'county' => '嘉義縣',
'city' => '竹崎鄉',
'outlying' => 0,
),
181 => array(
'zipcode' => 605,
'county' => '嘉義縣',
'city' => '阿里山鄉',
'outlying' => 0,
),
182 => array(
'zipcode' => 606,
'county' => '嘉義縣',
'city' => '中埔鄉',
'outlying' => 0,
),
183 => array(
'zipcode' => 607,
'county' => '嘉義縣',
'city' => '大埔鄉',
'outlying' => 0,
),
184 => array(
'zipcode' => 608,
'county' => '嘉義縣',
'city' => '水上鄉',
'outlying' => 0,
),
185 => array(
'zipcode' => 611,
'county' => '嘉義縣',
'city' => '鹿草鄉',
'outlying' => 0,
),
186 => array(
'zipcode' => 612,
'county' => '嘉義縣',
'city' => '太保市',
'outlying' => 0,
),
187 => array(
'zipcode' => 613,
'county' => '嘉義縣',
'city' => '朴子市',
'outlying' => 0,
),
188 => array(
'zipcode' => 614,
'county' => '嘉義縣',
'city' => '東石鄉',
'outlying' => 0,
),
189 => array(
'zipcode' => 615,
'county' => '嘉義縣',
'city' => '六腳鄉',
'outlying' => 0,
),
190 => array(
'zipcode' => 616,
'county' => '嘉義縣',
'city' => '新港鄉',
'outlying' => 0,
),
191 => array(
'zipcode' => 621,
'county' => '嘉義縣',
'city' => '民雄鄉',
'outlying' => 0,
),
192 => array(
'zipcode' => 622,
'county' => '嘉義縣',
'city' => '大林鎮',
'outlying' => 0,
),
193 => array(
'zipcode' => 623,
'county' => '嘉義縣',
'city' => '溪口鄉',
'outlying' => 0,
),
194 => array(
'zipcode' => 624,
'county' => '嘉義縣',
'city' => '義竹鄉',
'outlying' => 0,
),
195 => array(
'zipcode' => 625,
'county' => '嘉義縣',
'city' => '布袋鎮',
'outlying' => 0,
),
196 => array(
'zipcode' => 630,
'county' => '雲林縣',
'city' => '斗南鎮',
'outlying' => 0,
),
197 => array(
'zipcode' => 631,
'county' => '雲林縣',
'city' => '大埤鄉',
'outlying' => 0,
),
198 => array(
'zipcode' => 632,
'county' => '雲林縣',
'city' => '虎尾鎮',
'outlying' => 0,
),
199 => array(
'zipcode' => 633,
'county' => '雲林縣',
'city' => '土庫鎮',
'outlying' => 0,
),
200 => array(
'zipcode' => 634,
'county' => '雲林縣',
'city' => '褒忠鄉',
'outlying' => 0,
),
201 => array(
'zipcode' => 635,
'county' => '雲林縣',
'city' => '東勢鄉',
'outlying' => 0,
),
202 => array(
'zipcode' => 636,
'county' => '雲林縣',
'city' => '臺西鄉',
'outlying' => 0,
),
203 => array(
'zipcode' => 637,
'county' => '雲林縣',
'city' => '崙背鄉',
'outlying' => 0,
),
204 => array(
'zipcode' => 638,
'county' => '雲林縣',
'city' => '麥寮鄉',
'outlying' => 0,
),
205 => array(
'zipcode' => 640,
'county' => '雲林縣',
'city' => '斗六市',
'outlying' => 0,
),
206 => array(
'zipcode' => 643,
'county' => '雲林縣',
'city' => '林內鄉',
'outlying' => 0,
),
207 => array(
'zipcode' => 646,
'county' => '雲林縣',
'city' => '古坑鄉',
'outlying' => 0,
),
208 => array(
'zipcode' => 647,
'county' => '雲林縣',
'city' => '莿桐鄉',
'outlying' => 0,
),
209 => array(
'zipcode' => 648,
'county' => '雲林縣',
'city' => '西螺鎮',
'outlying' => 0,
),
210 => array(
'zipcode' => 649,
'county' => '雲林縣',
'city' => '二崙鄉',
'outlying' => 0,
),
211 => array(
'zipcode' => 651,
'county' => '雲林縣',
'city' => '北港鎮',
'outlying' => 0,
),
212 => array(
'zipcode' => 652,
'county' => '雲林縣',
'city' => '水林鄉',
'outlying' => 0,
),
213 => array(
'zipcode' => 653,
'county' => '雲林縣',
'city' => '口湖鄉',
'outlying' => 0,
),
214 => array(
'zipcode' => 654,
'county' => '雲林縣',
'city' => '四湖鄉',
'outlying' => 0,
),
215 => array(
'zipcode' => 655,
'county' => '雲林縣',
'city' => '元長鄉',
'outlying' => 0,
),
216 => array(
'zipcode' => 700,
'county' => '臺南市',
'city' => '中西區',
'outlying' => 0,
),
217 => array(
'zipcode' => 701,
'county' => '臺南市',
'city' => '東區',
'outlying' => 0,
),
218 => array(
'zipcode' => 702,
'county' => '臺南市',
'city' => '南區',
'outlying' => 0,
),
219 => array(
'zipcode' => 704,
'county' => '臺南市',
'city' => '北區',
'outlying' => 0,
),
220 => array(
'zipcode' => 708,
'county' => '臺南市',
'city' => '安平區',
'outlying' => 0,
),
221 => array(
'zipcode' => 709,
'county' => '臺南市',
'city' => '安南區',
'outlying' => 0,
),
222 => array(
'zipcode' => 710,
'county' => '臺南市',
'city' => '永康區',
'outlying' => 0,
),
223 => array(
'zipcode' => 711,
'county' => '臺南市',
'city' => '歸仁區',
'outlying' => 0,
),
224 => array(
'zipcode' => 712,
'county' => '臺南市',
'city' => '新化區',
'outlying' => 0,
),
225 => array(
'zipcode' => 713,
'county' => '臺南市',
'city' => '左鎮區',
'outlying' => 0,
),
226 => array(
'zipcode' => 714,
'county' => '臺南市',
'city' => '玉井區',
'outlying' => 0,
),
227 => array(
'zipcode' => 715,
'county' => '臺南市',
'city' => '楠西區',
'outlying' => 0,
),
228 => array(
'zipcode' => 716,
'county' => '臺南市',
'city' => '南化區',
'outlying' => 0,
),
229 => array(
'zipcode' => 717,
'county' => '臺南市',
'city' => '仁德區',
'outlying' => 0,
),
230 => array(
'zipcode' => 718,
'county' => '臺南市',
'city' => '關廟區',
'outlying' => 0,
),
231 => array(
'zipcode' => 719,
'county' => '臺南市',
'city' => '龍崎區',
'outlying' => 0,
),
232 => array(
'zipcode' => 720,
'county' => '臺南市',
'city' => '官田區',
'outlying' => 0,
),
233 => array(
'zipcode' => 721,
'county' => '臺南市',
'city' => '麻豆區',
'outlying' => 0,
),
234 => array(
'zipcode' => 722,
'county' => '臺南市',
'city' => '佳里區',
'outlying' => 0,
),
235 => array(
'zipcode' => 723,
'county' => '臺南市',
'city' => '西港區',
'outlying' => 0,
),
236 => array(
'zipcode' => 724,
'county' => '臺南市',
'city' => '七股區',
'outlying' => 0,
),
237 => array(
'zipcode' => 725,
'county' => '臺南市',
'city' => '將軍區',
'outlying' => 0,
),
238 => array(
'zipcode' => 726,
'county' => '臺南市',
'city' => '學甲區',
'outlying' => 0,
),
239 => array(
'zipcode' => 727,
'county' => '臺南市',
'city' => '北門區',
'outlying' => 0,
),
240 => array(
'zipcode' => 730,
'county' => '臺南市',
'city' => '新營區',
'outlying' => 0,
),
241 => array(
'zipcode' => 731,
'county' => '臺南市',
'city' => '後壁區',
'outlying' => 0,
),
242 => array(
'zipcode' => 732,
'county' => '臺南市',
'city' => '白河區',
'outlying' => 0,
),
243 => array(
'zipcode' => 733,
'county' => '臺南市',
'city' => '東山區',
'outlying' => 0,
),
244 => array(
'zipcode' => 734,
'county' => '臺南市',
'city' => '六甲區',
'outlying' => 0,
),
245 => array(
'zipcode' => 735,
'county' => '臺南市',
'city' => '下營區',
'outlying' => 0,
),
246 => array(
'zipcode' => 736,
'county' => '臺南市',
'city' => '柳營區',
'outlying' => 0,
),
247 => array(
'zipcode' => 737,
'county' => '臺南市',
'city' => '鹽水區',
'outlying' => 0,
),
248 => array(
'zipcode' => 741,
'county' => '臺南市',
'city' => '善化區',
'outlying' => 0,
),
249 => array(
'zipcode' => 742,
'county' => '臺南市',
'city' => '大內區',
'outlying' => 0,
),
250 => array(
'zipcode' => 743,
'county' => '臺南市',
'city' => '山上區',
'outlying' => 0,
),
251 => array(
'zipcode' => 744,
'county' => '臺南市',
'city' => '新市區',
'outlying' => 0,
),
252 => array(
'zipcode' => 745,
'county' => '臺南市',
'city' => '安定區',
'outlying' => 0,
),
253 => array(
'zipcode' => 800,
'county' => '高雄市',
'city' => '新興區',
'outlying' => 0,
),
254 => array(
'zipcode' => 801,
'county' => '高雄市',
'city' => '前金區',
'outlying' => 0,
),
255 => array(
'zipcode' => 802,
'county' => '高雄市',
'city' => '苓雅區',
'outlying' => 0,
),
256 => array(
'zipcode' => 803,
'county' => '高雄市',
'city' => '鹽埕區',
'outlying' => 0,
),
257 => array(
'zipcode' => 804,
'county' => '高雄市',
'city' => '鼓山區',
'outlying' => 0,
),
258 => array(
'zipcode' => 805,
'county' => '高雄市',
'city' => '旗津區',
'outlying' => 0,
),
259 => array(
'zipcode' => 806,
'county' => '高雄市',
'city' => '前鎮區',
'outlying' => 0,
),
260 => array(
'zipcode' => 807,
'county' => '高雄市',
'city' => '三民區',
'outlying' => 0,
),
261 => array(
'zipcode' => 811,
'county' => '高雄市',
'city' => '楠梓區',
'outlying' => 0,
),
262 => array(
'zipcode' => 812,
'county' => '高雄市',
'city' => '小港區',
'outlying' => 0,
),
263 => array(
'zipcode' => 813,
'county' => '高雄市',
'city' => '左營區',
'outlying' => 0,
),
264 => array(
'zipcode' => 814,
'county' => '高雄市',
'city' => '仁武區',
'outlying' => 0,
),
265 => array(
'zipcode' => 815,
'county' => '高雄市',
'city' => '大社區',
'outlying' => 0,
),
266 => array(
'zipcode' => 820,
'county' => '高雄市',
'city' => '岡山區',
'outlying' => 0,
),
267 => array(
'zipcode' => 821,
'county' => '高雄市',
'city' => '路竹區',
'outlying' => 0,
),
268 => array(
'zipcode' => 822,
'county' => '高雄市',
'city' => '阿蓮區',
'outlying' => 0,
),
269 => array(
'zipcode' => 823,
'county' => '高雄市',
'city' => '田寮區',
'outlying' => 0,
),
270 => array(
'zipcode' => 824,
'county' => '高雄市',
'city' => '燕巢區',
'outlying' => 0,
),
271 => array(
'zipcode' => 825,
'county' => '高雄市',
'city' => '橋頭區',
'outlying' => 0,
),
272 => array(
'zipcode' => 826,
'county' => '高雄市',
'city' => '梓官區',
'outlying' => 0,
),
273 => array(
'zipcode' => 827,
'county' => '高雄市',
'city' => '彌陀區',
'outlying' => 0,
),
274 => array(
'zipcode' => 828,
'county' => '高雄市',
'city' => '永安區',
'outlying' => 0,
),
275 => array(
'zipcode' => 829,
'county' => '高雄市',
'city' => '湖內區',
'outlying' => 0,
),
276 => array(
'zipcode' => 830,
'county' => '高雄市',
'city' => '鳳山區',
'outlying' => 0,
),
277 => array(
'zipcode' => 831,
'county' => '高雄市',
'city' => '大寮區',
'outlying' => 0,
),
278 => array(
'zipcode' => 832,
'county' => '高雄市',
'city' => '林園區',
'outlying' => 0,
),
279 => array(
'zipcode' => 833,
'county' => '高雄市',
'city' => '鳥松區',
'outlying' => 0,
),
280 => array(
'zipcode' => 840,
'county' => '高雄市',
'city' => '大樹區',
'outlying' => 0,
),
281 => array(
'zipcode' => 842,
'county' => '高雄市',
'city' => '旗山區',
'outlying' => 0,
),
282 => array(
'zipcode' => 843,
'county' => '高雄市',
'city' => '美濃區',
'outlying' => 0,
),
283 => array(
'zipcode' => 844,
'county' => '高雄市',
'city' => '六龜區',
'outlying' => 0,
),
284 => array(
'zipcode' => 845,
'county' => '高雄市',
'city' => '內門區',
'outlying' => 0,
),
285 => array(
'zipcode' => 846,
'county' => '高雄市',
'city' => '杉林區',
'outlying' => 0,
),
286 => array(
'zipcode' => 847,
'county' => '高雄市',
'city' => '甲仙區',
'outlying' => 0,
),
287 => array(
'zipcode' => 848,
'county' => '高雄市',
'city' => '桃源區',
'outlying' => 0,
),
288 => array(
'zipcode' => 849,
'county' => '高雄市',
'city' => '那瑪夏區',
'outlying' => 0,
),
289 => array(
'zipcode' => 851,
'county' => '高雄市',
'city' => '茂林區',
'outlying' => 0,
),
290 => array(
'zipcode' => 852,
'county' => '高雄市',
'city' => '茄萣區',
'outlying' => 0,
),
291 => array(
'zipcode' => 817,
'county' => '高雄市',
'city' => '東沙群島',
'outlying' => 0,
),
292 => array(
'zipcode' => 819,
'county' => '高雄市',
'city' => '南沙群島',
'outlying' => 0,
),
293 => array(
'zipcode' => 880,
'county' => '澎湖縣',
'city' => '馬公市',
'outlying' => 1,
),
294 => array(
'zipcode' => 881,
'county' => '澎湖縣',
'city' => '西嶼鄉',
'outlying' => 1,
),
295 => array(
'zipcode' => 882,
'county' => '澎湖縣',
'city' => '望安鄉',
'outlying' => 1,
),
296 => array(
'zipcode' => 883,
'county' => '澎湖縣',
'city' => '七美鄉',
'outlying' => 1,
),
297 => array(
'zipcode' => 884,
'county' => '澎湖縣',
'city' => '白沙鄉',
'outlying' => 1,
),
298 => array(
'zipcode' => 885,
'county' => '澎湖縣',
'city' => '湖西鄉',
'outlying' => 1,
),
299 => array(
'zipcode' => 900,
'county' => '屏東縣',
'city' => '屏東市',
'outlying' => 0,
),
300 => array(
'zipcode' => 901,
'county' => '屏東縣',
'city' => '三地門鄉',
'outlying' => 0,
),
301 => array(
'zipcode' => 902,
'county' => '屏東縣',
'city' => '霧臺鄉',
'outlying' => 0,
),
302 => array(
'zipcode' => 903,
'county' => '屏東縣',
'city' => '瑪家鄉',
'outlying' => 0,
),
303 => array(
'zipcode' => 904,
'county' => '屏東縣',
'city' => '九如鄉',
'outlying' => 0,
),
304 => array(
'zipcode' => 905,
'county' => '屏東縣',
'city' => '里港鄉',
'outlying' => 0,
),
305 => array(
'zipcode' => 906,
'county' => '屏東縣',
'city' => '高樹鄉',
'outlying' => 0,
),
306 => array(
'zipcode' => 907,
'county' => '屏東縣',
'city' => '鹽埔鄉',
'outlying' => 0,
),
307 => array(
'zipcode' => 908,
'county' => '屏東縣',
'city' => '長治鄉',
'outlying' => 0,
),
308 => array(
'zipcode' => 909,
'county' => '屏東縣',
'city' => '麟洛鄉',
'outlying' => 0,
),
309 => array(
'zipcode' => 911,
'county' => '屏東縣',
'city' => '竹田鄉',
'outlying' => 0,
),
310 => array(
'zipcode' => 912,
'county' => '屏東縣',
'city' => '內埔鄉',
'outlying' => 0,
),
311 => array(
'zipcode' => 913,
'county' => '屏東縣',
'city' => '萬丹鄉',
'outlying' => 0,
),
312 => array(
'zipcode' => 920,
'county' => '屏東縣',
'city' => '潮州鎮',
'outlying' => 0,
),
313 => array(
'zipcode' => 921,
'county' => '屏東縣',
'city' => '泰武鄉',
'outlying' => 0,
),
314 => array(
'zipcode' => 922,
'county' => '屏東縣',
'city' => '來義鄉',
'outlying' => 0,
),
315 => array(
'zipcode' => 923,
'county' => '屏東縣',
'city' => '萬巒鄉',
'outlying' => 0,
),
316 => array(
'zipcode' => 924,
'county' => '屏東縣',
'city' => '崁頂鄉',
'outlying' => 0,
),
317 => array(
'zipcode' => 925,
'county' => '屏東縣',
'city' => '新埤鄉',
'outlying' => 0,
),
318 => array(
'zipcode' => 926,
'county' => '屏東縣',
'city' => '南州鄉',
'outlying' => 0,
),
319 => array(
'zipcode' => 927,
'county' => '屏東縣',
'city' => '林邊鄉',
'outlying' => 0,
),
320 => array(
'zipcode' => 928,
'county' => '屏東縣',
'city' => '東港鎮',
'outlying' => 0,
),
321 => array(
'zipcode' => 929,
'county' => '屏東縣',
'city' => '琉球鄉',
'outlying' => 0,
),
322 => array(
'zipcode' => 931,
'county' => '屏東縣',
'city' => '佳冬鄉',
'outlying' => 0,
),
323 => array(
'zipcode' => 932,
'county' => '屏東縣',
'city' => '新園鄉',
'outlying' => 0,
),
324 => array(
'zipcode' => 940,
'county' => '屏東縣',
'city' => '枋寮鄉',
'outlying' => 0,
),
325 => array(
'zipcode' => 941,
'county' => '屏東縣',
'city' => '枋山鄉',
'outlying' => 0,
),
326 => array(
'zipcode' => 942,
'county' => '屏東縣',
'city' => '春日鄉',
'outlying' => 0,
),
327 => array(
'zipcode' => 943,
'county' => '屏東縣',
'city' => '獅子鄉',
'outlying' => 0,
),
328 => array(
'zipcode' => 944,
'county' => '屏東縣',
'city' => '車城鄉',
'outlying' => 0,
),
329 => array(
'zipcode' => 945,
'county' => '屏東縣',
'city' => '牡丹鄉',
'outlying' => 0,
),
330 => array(
'zipcode' => 946,
'county' => '屏東縣',
'city' => '恆春鎮',
'outlying' => 0,
),
331 => array(
'zipcode' => 947,
'county' => '屏東縣',
'city' => '滿州鄉',
'outlying' => 0,
),
332 => array(
'zipcode' => 950,
'county' => '臺東縣',
'city' => '臺東市',
'outlying' => 0,
),
333 => array(
'zipcode' => 951,
'county' => '臺東縣',
'city' => '綠島鄉',
'outlying' => 0,
),
334 => array(
'zipcode' => 952,
'county' => '臺東縣',
'city' => '蘭嶼鄉',
'outlying' => 0,
),
335 => array(
'zipcode' => 953,
'county' => '臺東縣',
'city' => '延平鄉',
'outlying' => 0,
),
336 => array(
'zipcode' => 954,
'county' => '臺東縣',
'city' => '卑南鄉',
'outlying' => 0,
),
337 => array(
'zipcode' => 955,
'county' => '臺東縣',
'city' => '鹿野鄉',
'outlying' => 0,
),
338 => array(
'zipcode' => 956,
'county' => '臺東縣',
'city' => '關山鎮',
'outlying' => 0,
),
339 => array(
'zipcode' => 957,
'county' => '臺東縣',
'city' => '海端鄉',
'outlying' => 0,
),
340 => array(
'zipcode' => 958,
'county' => '臺東縣',
'city' => '池上鄉',
'outlying' => 0,
),
341 => array(
'zipcode' => 959,
'county' => '臺東縣',
'city' => '東河鄉',
'outlying' => 0,
),
342 => array(
'zipcode' => 961,
'county' => '臺東縣',
'city' => '成功鎮',
'outlying' => 0,
),
343 => array(
'zipcode' => 962,
'county' => '臺東縣',
'city' => '長濱鄉',
'outlying' => 0,
),
344 => array(
'zipcode' => 963,
'county' => '臺東縣',
'city' => '太麻里鄉',
'outlying' => 0,
),
345 => array(
'zipcode' => 964,
'county' => '臺東縣',
'city' => '金峰鄉',
'outlying' => 0,
),
346 => array(
'zipcode' => 965,
'county' => '臺東縣',
'city' => '大武鄉',
'outlying' => 0,
),
347 => array(
'zipcode' => 966,
'county' => '臺東縣',
'city' => '達仁鄉',
'outlying' => 0,
),
348 => array(
'zipcode' => 970,
'county' => '花蓮縣',
'city' => '花蓮市',
'outlying' => 0,
),
349 => array(
'zipcode' => 971,
'county' => '花蓮縣',
'city' => '新城鄉',
'outlying' => 0,
),
350 => array(
'zipcode' => 972,
'county' => '花蓮縣',
'city' => '秀林鄉',
'outlying' => 0,
),
351 => array(
'zipcode' => 973,
'county' => '花蓮縣',
'city' => '吉安鄉',
'outlying' => 0,
),
352 => array(
'zipcode' => 974,
'county' => '花蓮縣',
'city' => '壽豐鄉',
'outlying' => 0,
),
353 => array(
'zipcode' => 975,
'county' => '花蓮縣',
'city' => '鳳林鎮',
'outlying' => 0,
),
354 => array(
'zipcode' => 976,
'county' => '花蓮縣',
'city' => '光復鄉',
'outlying' => 0,
),
355 => array(
'zipcode' => 977,
'county' => '花蓮縣',
'city' => '豐濱鄉',
'outlying' => 0,
),
356 => array(
'zipcode' => 978,
'county' => '花蓮縣',
'city' => '瑞穗鄉',
'outlying' => 0,
),
357 => array(
'zipcode' => 979,
'county' => '花蓮縣',
'city' => '萬榮鄉',
'outlying' => 0,
),
358 => array(
'zipcode' => 981,
'county' => '花蓮縣',
'city' => '玉里鎮',
'outlying' => 0,
),
359 => array(
'zipcode' => 982,
'county' => '花蓮縣',
'city' => '卓溪鄉',
'outlying' => 0,
),
360 => array(
'zipcode' => 983,
'county' => '花蓮縣',
'city' => '富里鄉',
'outlying' => 0,
),
361 => array(
'zipcode' => 890,
'county' => '金門縣',
'city' => '金沙鎮',
'outlying' => 1,
),
362 => array(
'zipcode' => 891,
'county' => '金門縣',
'city' => '金湖鎮',
'outlying' => 1,
),
363 => array(
'zipcode' => 892,
'county' => '金門縣',
'city' => '金寧鄉',
'outlying' => 1,
),
364 => array(
'zipcode' => 893,
'county' => '金門縣',
'city' => '金城鎮',
'outlying' => 1,
),
365 => array(
'zipcode' => 894,
'county' => '金門縣',
'city' => '烈嶼鄉',
'outlying' => 1,
),
366 => array(
'zipcode' => 896,
'county' => '金門縣',
'city' => '烏坵鄉',
'outlying' => 1,
),
367 => array(
'zipcode' => 209,
'county' => '連江縣',
'city' => '南竿鄉',
'outlying' => 1,
),
368 => array(
'zipcode' => 210,
'county' => '連江縣',
'city' => '北竿鄉',
'outlying' => 1,
),
369 => array(
'zipcode' => 211,
'county' => '連江縣',
'city' => '莒光鄉',
'outlying' => 1,
),
370 => array(
'zipcode' => 212,
'county' => '連江縣',
'city' => '東引鄉',
'outlying' => 1,
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment