[會員登入] [正體/简体]

Jquery 村里索引功能使用範例

你需要先有se值,se值可由[申請試用]或[購買])取得。

twaddr.2.1.min.js版加入有村里選項的功能,但不具有郵碼查詢及音譯地址的功能。

載入JS
<script src="http://zipko.info/js/twaddr.2.1.min.js?se=你的se值"></script>
寫法說明
基本寫法 HTML <form> <div id="twaddress"></div> <button type="submit">送出</button> </form> Javascript $('#twaddress').twaddress(); 呈現結果
送出內容範例 [county] => 新北市 [district] => 三重區 [village] => 正德里
輸出帶出其他欄位 HTML <form> <div id="twaddress"></div> <button type="submit">送出</button> </form> Javascript $('#twaddress').twaddress({"extraoutput":"hanflat,ovc"}); 可帶出的欄位有 citycode, areacode, village, occ, oac, ovc, hanflat, zhu2, genflat,預設為空'',多筆資料可用逗點區隔。 呈現結果
送出內容範例 [county] => 南投縣 [district] => 中寮鄉 [village] => 廣興村 [extra] => Array ( [0] => Guangxing Vil. [1] => 1000808-001 )
程式村里索引--選取縣市
程式村里索引--選取縣市

http://zipko.info/twidx/g1?se=8456231-1

[{"citycode":"1","city":"台北市"},{"citycode":"2","city":"台中市"},{"citycode":"3","city":"新北市 "},{"citycode":"4","city":"高雄市"},{"citycode":"5","city":"台南市"},{"citycode":"6","city":"新竹市"},{"citycode":"7","city":"嘉義 市"},{"citycode":"8","city":"嘉義縣"},{"citycode":"9","city":"彰化縣"},{"citycode":"10","city":"桃園市"},{"citycode":"11","city":"南投縣"},{"citycode":"12","city":"新竹縣"},{"citycode":"13","city":"屏東縣"},{"citycode":"14","city":"基隆市"},{"citycode":"15","city":"雲林縣"},{"citycode":"16","city":"苗栗縣"},{"citycode":"17","city":"澎湖縣"},{"citycode":"18","city":"台東縣"},{"citycode":"19","city":"宜蘭縣"},{"citycode":"20","city":"花蓮縣"},{"citycode":"21","city":"金門縣"},{"citycode":"22","city":"連江縣"}]
程式村里索引--選取鄉鎮市區

代入citycode值選取鄉鎮 cd=citycode,例如代入cd=1選取台北市鄉鎮市區

http://zipko.info/twidx/g2?cd=1&se=8456231-1

[{"citycode":"1","areacode":"1","area":"士林區","zip3":"111"},{"citycode":"1","areacode":"2","area":"大同區","zip3":"103"},{"citycode":"1","areacode":"3","area":"大安區","zip3":"106"},{"citycode":"1","areacode":"4","area":"中山區","zip3":"104"},{"citycode":"1","areacode":"5","area":"中正區","zip3":"100"},{"citycode":"1","areacode":"6","area":"內湖區","zip3":"114"},{"citycode":"1","areacode":"7","area":"文山區","zip3":"116"},{"citycode":"1","areacode":"8","area":"北投區","zip3":"112"},{"citycode":"1","areacode":"9","area":"松山區","zip3":"105"},{"citycode":"1","areacode":"10","area":"信義區","zip3":"110"},{"citycode":"1","areacode":"11","area":"南港區","zip3":"115"},{"citycode":"1","areacode":"12","area":"萬華區","zip3":"108"}]
程式村里索引--選取村里

代入areacode(cd)選取村里,cd=areacode,例如代入cd=12選取台北市士林區。

http://zipko.info/twidx/g5?cd=12&se=8456231-1

結果數組 "occ":地政縣市代碼,"oac":地政地區代碼,"ovc":地政村里代碼,
"hanflat":村里漢語拼音 ,"zhu2":村里注音2式, "genflat":村里通用拼音

[{"citycode":"1","areacode":"12","village":"福星里","occ":"63","oac":"6300700","ovc":"6300700-001","hanflat":"Fuxing Vil.","zhu2":"Fushing Vil.","genflat":"Fusing Vil."},{"citycode":"1","areacode":"12","village":"萬壽里","occ":"63","oac":"6300700","ovc":"6300700-002","hanflat":"Wanshou Vil.","zhu2":"Wanshou Vil.","genflat":"Wanshou Vil."},{"citycode":"1","areacode":"12","village":"西門里","occ":"63","oac":"6300700","ovc":"6300700-003","hanflat":"Ximen Vil.","zhu2":"Shimen Vil.","genflat":"Simen Vil."},{"citycode":"1","areacode":"12","village":"新起里","occ":"63","oac":"6300700","ovc":"6300700-004","hanflat":"Xinqi Vil.","zhu2":"Shinchi Vil.","genflat":"Sinci Vil."},{"citycode":"1","areacode":"12","village":"菜園里","occ":"63","oac":"6300700","ovc":"6300700-005","hanflat":"Caiyuan Vil.","zhu2":"Tsaiyuan Vil.","genflat":"Caiyuan Vil."},{"citycode":"1","areacode":"12","village":"青山里","occ":"63","oac":"6300700","ovc":"6300700-006","hanflat":"Qingshan Vil.","zhu2":"Chingshan Vil.","genflat":"Cingshan Vil."},{"citycode":"1","areacode":"12","village":"富民里","occ":"63","oac":"6300700","ovc":"6300700-007","hanflat":"Fumin Vil.","zhu2":"Fumin Vil.","genflat":"Fumin Vil."},{"citycode":"1","areacode":"12","village":"福音里","occ":"63","oac":"6300700","ovc":"6300700-008","hanflat":"Fuyin Vil.","zhu2":"Fuyin Vil.","genflat":"Fuyin Vil."},{"citycode":"1","areacode":"12","village":"仁德里","occ":"63","oac":"6300700","ovc":"6300700-009","hanflat":"Rende Vil.","zhu2":"Rende Vil.","genflat":"Rende Vil."},{"citycode":"1","areacode":"12","village":"富福里","occ":"63","oac":"6300700","ovc":"6300700-010","hanflat":"Fufu Vil.","zhu2":"Fufu Vil.","genflat":"Fufu Vil."},{"citycode":"1","areacode":"12","village":"頂碩里","occ":"63","oac":"6300700","ovc":"6300700-011","hanflat":"Dingshi Vil.","zhu2":"Dingshr Vil.","genflat":"Dingshih Vil."},{"citycode":"1","areacode":"12","village":"雙園里","occ":"63","oac":"6300700","ovc":"6300700-012","hanflat":"Shuangyuan Vil.","zhu2":"Shuangyuan Vil.","genflat":"Shuangyuan Vil."},{"citycode":"1","areacode":"12","village":"新忠里","occ":"63","oac":"6300700","ovc":"6300700-013","hanflat":"Xinzhong Vil.","zhu2":"Shinjung Vil.","genflat":"Sinjhong Vil."},{"citycode":"1","areacode":"12","village":"新和里","occ":"63","oac":"6300700","ovc":"6300700-014","hanflat":"Xinhan Vil.","zhu2":"Shinhan Vil.","genflat":"Sinhan Vil."},{"citycode":"1","areacode":"12","village":"糖廍里","occ":"63","oac":"6300700","ovc":"6300700-015","hanflat":"Tang Vil.","zhu2":"Tang Vil.","genflat":"Tang Vil."},{"citycode":"1","areacode":"12","village":"和平里","occ":"63","oac":"6300700","ovc":"6300700-016","hanflat":"Hanping Vil.","zhu2":"Hanping Vil.","genflat":"Hanping Vil."},{"citycode":"1","areacode":"12","village":"綠堤里","occ":"63","oac":"6300700","ovc":"6300700-017","hanflat":"Luti Vil.","zhu2":"Luti Vil.","genflat":"Luti Vil."},{"citycode":"1","areacode":"12","village":"華江里","occ":"63","oac":"6300700","ovc":"6300700-018","hanflat":"Huajiang Vil.","zhu2":"Huajiang Vil.","genflat":"Huajiang Vil."},{"citycode":"1","areacode":"12","village":"柳鄉里","occ":"63","oac":"6300700","ovc":"6300700-019","hanflat":"Liuxiang Vil.","zhu2":"Lioushiang Vil.","genflat":"Liousiang Vil."},{"citycode":"1","areacode":"12","village":"日善里","occ":"63","oac":"6300700","ovc":"6300700-020","hanflat":"Rishan Vil.","zhu2":"Rshan Vil.","genflat":"Rihshan Vil."},{"citycode":"1","areacode":"12","village":"新安里","occ":"63","oac":"6300700","ovc":"6300700-021","hanflat":"Xinan Vil.","zhu2":"Shinan Vil.","genflat":"Sinan Vil."},{"citycode":"1","areacode":"12","village":"忠德里","occ":"63","oac":"6300700","ovc":"6300700-022","hanflat":"Zhongde Vil.","zhu2":"Jungde Vil.","genflat":"Jhongde Vil."},{"citycode":"1","areacode":"12","village":"孝德里","occ":"63","oac":"6300700","ovc":"6300700-023","hanflat":"Xiaode Vil.","zhu2":"Shiaude Vil.","genflat":"Siaode Vil."},{"citycode":"1","areacode":"12","village":"和德里","occ":"63","oac":"6300700","ovc":"6300700-024","hanflat":"Hande Vil.","zhu2":"Hande Vil.","genflat":"Hande Vil."},{"citycode":"1","areacode":"12","village":"錦德里","occ":"63","oac":"6300700","ovc":"6300700-025","hanflat":"Jinde Vil.","zhu2":"Jinde Vil.","genflat":"Jinde Vil."},{"citycode":"1","areacode":"12","village":"全德里","occ":"63","oac":"6300700","ovc":"6300700-026","hanflat":"Quande Vil.","zhu2":"Chiuande Vil.","genflat":"Cyuande Vil."},{"citycode":"1","areacode":"12","village":"保德里","occ":"63","oac":"6300700","ovc":"6300700-027","hanflat":"Baode Vil.","zhu2":"Baude Vil.","genflat":"Baode Vil."},{"citycode":"1","areacode":"12","village":"銘德里","occ":"63","oac":"6300700","ovc":"6300700-028","hanflat":"Mingde Vil.","zhu2":"Mingde Vil.","genflat":"Mingde Vil."},{"citycode":"1","areacode":"12","village":"榮德里","occ":"63","oac":"6300700","ovc":"6300700-029","hanflat":"Rongde Vil.","zhu2":"Rungde Vil.","genflat":"Rongde Vil."},{"citycode":"1","areacode":"12","village":"壽德里","occ":"63","oac":"6300700","ovc":"6300700-030","hanflat":"Shoude Vil.","zhu2":"Shoude Vil.","genflat":"Shoude Vil."},{"citycode":"1","areacode":"12","village":"興德里","occ":"63","oac":"6300700","ovc":"6300700-031","hanflat":"Xingde Vil.","zhu2":"Shingde Vil.","genflat":"Singde Vil."},{"citycode":"1","areacode":"12","village":"華中里","occ":"63","oac":"6300700","ovc":"6300700-032","hanflat":"Huazhong Vil.","zhu2":"Huajung Vil.","genflat":"Huajhong Vil."},{"citycode":"1","areacode":"12","village":"日祥里","occ":"63","oac":"6300700","ovc":"6300700-033","hanflat":"Rixiang Vil.","zhu2":"Rshiang Vil.","genflat":"Rihsiang Vil."},{"citycode":"1","areacode":"12","village":"忠貞里","occ":"63","oac":"6300700","ovc":"6300700-034","hanflat":"Zhongzhen Vil.","zhu2":"Jungjen Vil.","genflat":"Jhongjhen Vil."},{"citycode":"1","areacode":"12","village":"凌霄里","occ":"63","oac":"6300700","ovc":"6300700-035","hanflat":"Lingxiao Vil.","zhu2":"Lingshiau Vil.","genflat":"Lingsiao Vil."},{"citycode":"1","areacode":"12","village":"騰雲里","occ":"63","oac":"6300700","ovc":"6300700-036","hanflat":"Tengyun Vil.","zhu2":"Tengyun Vil.","genflat":"Tengyun Vil."}]
可用選項
  1. 'selcss': 指定選擇項目的class
  2. 'readonly': 填寫郵碼和地址區域是否唯讀
  3. 'selrequired': 縣市地區是否必選
  4. 'extraoutput':帶出其他欄位,會以隱藏extra欄位送出
當您查了很多次以後,點個廣告,感謝您!
或請我們一杯咖啡,只花您三分鐘+$50
台灣最熱門也最準確查詢郵碼網站,歡迎投放廣告
300x90~300