Git Product home page Git Product logo

twzipcode-data's People

Contributors

dependabot[bot] avatar neko2891 avatar yyc1217 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twzipcode-data's Issues

新竹市與嘉義市區碼問題?

不曉得新竹市跟嘉義市的區碼問題有解嗎?
看起來是兩個城市內的區碼都相同,所以下拉選單在選擇時都出現同一個區域

資料裡有空白

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 好像不能用的樣子...

看到有更改紀錄 bower 從 src/index.js 改到 dist/index.js
但是 .gitignore 把 dist 排掉了
使用 bower i 裝過,也沒看到有 dist 資料夾拉回來
這樣 bower 可以用嗎 ?

thanks.

PR 前有事情想要請教

HI

想說再次提交 PR 前先詢問
請問有接受 PR 嗎?

修復轉檔資料後有發現兩個問題,想先討論看看在提交 PR

  1. 關於新竹市與嘉義市
    目前這兩個市有內建區,但是同樣都是同一組郵遞區號
    300 與 600
    但目前您的資料 兩個市的內區都拿掉了
    雖然從 ZIPCODE 的角度來看,兩個都是同樣 ZIP CODE
    但是如果你把它做成應用例如 twzipcode-vue 就會造成有時候我們想要收集到真實的地址
    而並非只是確認 ZIP CODE 對於新竹市與嘉義市就無法收集到區的資料
    目前這兩個區我是手動改成真實的區
  • 但在我提交的 3+2 parser 會直接把這兩個市的內區顯示出來 ( 同樣是 300 與 600 )
    想討論看看 實際呈現 內區的合理性
  1. 關於排序的問題
    目前您的資料排序似乎是使用 ZIPCODE 的順序來做排序
    但有趣的是連江縣是 209 - 212 卻被手動移到最後方
    image
    但是似乎這個選單在使用上來說,依照中華郵政使用上是會依照台灣從北到南的行政區來選
    image
    這是 yahoo購物中心的排序
    image

所以我個人是考慮是否在 parser 的時候到中華郵政看他的 list 的順序在排序過...

以上兩點,謝謝。

如果有專案上衝突考量不方便 PR 的話,沒關係我就再建新的專案即可,謝謝。

關於Typescript 支援

因為缺乏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;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.