yyc1217 / twzipcode-data Goto Github PK
View Code? Open in Web Editor NEW開發用中華郵政郵遞區號 / Taiwan zipcodes for developers.
License: MIT License
開發用中華郵政郵遞區號 / Taiwan zipcodes for developers.
License: MIT License
不曉得新竹市跟嘉義市的區碼問題有解嗎?
看起來是兩個城市內的區碼都相同,所以下拉選單在選擇時都出現同一個區域
https://github.com/yyc1217/twzipcode-data/blob/master/src/zh-tw/zipcodes.js
{ 'id': 400, 'county': '臺中市', 'city': '中 區' }, { 'id': 401, 'county': '臺中市', 'city': '東 區' }, { 'id': 402, 'county': '臺中市', 'city': '南 區' }, { 'id': 403, 'county': '臺中市', 'city': '西 區' }, { 'id': 404, 'county': '臺中市', 'city': '北 區' },
{ 'id': 701, 'county': '臺南市', 'city': '東 區' }, { 'id': 702, 'county': '臺南市', 'city': '南 區' }, { 'id': 704, 'county': '臺南市', 'city': '北 區' },
請問能否將空白去除?
看到有更改紀錄 bower 從 src/index.js 改到 dist/index.js
但是 .gitignore 把 dist 排掉了
使用 bower i 裝過,也沒看到有 dist 資料夾拉回來
這樣 bower 可以用嗎 ?
thanks.
HI
想說再次提交 PR 前先詢問
請問有接受 PR 嗎?
修復轉檔資料後有發現兩個問題,想先討論看看在提交 PR
所以我個人是考慮是否在 parser 的時候到中華郵政看他的 list 的順序在排序過...
以上兩點,謝謝。
如果有專案上衝突考量不方便 PR 的話,沒關係我就再建新的專案即可,謝謝。
因為缺乏index.d.ts的定義檔案,因此沒辦法在ts的專案中直接使用。
所以個人弄了一個Typescipt相關的定義檔按給大家參考,如果沒問題的話我再送PR。
declare module "twzipcode-data" {
export interface County {
id: string;
name: string;
}
export interface Zipcode {
id: string;
zipcode: number;
county: string;
city: string;
}
export interface TwZipcodeData {
counties: County[];
zipcodes: Zipcode[];
}
export default twzipcode = (locale?: string) => TwZipcodeData;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.