Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkfsn/tw-address-translator
The utils to translate Taiwan address from Chinese to English
https://github.com/mkfsn/tw-address-translator
taiwan taiwan-address
Last synced: about 1 month ago
JSON representation
The utils to translate Taiwan address from Chinese to English
- Host: GitHub
- URL: https://github.com/mkfsn/tw-address-translator
- Owner: mkfsn
- License: mit
- Created: 2022-08-27T14:53:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T07:53:02.000Z (over 2 years ago)
- Last Synced: 2024-06-21T09:46:01.717Z (6 months ago)
- Topics: taiwan, taiwan-address
- Language: Go
- Homepage: https://tw-address-translator.vercel.app
- Size: 646 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Taiwan address translator
This repository contains three components:
- Go library: the library to translate a Taiwan address from Chinese to English
- Web app: https://tw-address-translator.vercel.app
- API: the api to translate a Taiwan address from Chinese to English## Go library
### Installation
```
go get github.com/mkfsn/tw-address-translator
```### How to use
```go
package mainimport (
"log"
"github.com/mkfsn/tw-address-translator/pkg/translator"
)func main() {
t := translator.New()
englishAddress, err := t.Translate("/* Valid Chinese address */")
if err != nil {
log.Fatalln(err)
}
log.Println(englishAddress)
}
```## Web app
[https://tw-address-translator.vercel.app](https://tw-address-translator.vercel.app)
## API
TODO
# References
## Data source
- [中華郵政全球資訊網 ▶︎ 下載專區 ▶︎ 下載項目一覽](https://www.post.gov.tw/post/internet/Download/all_list.jsp?ID=2201#dl_txt_A09)
- [6.1 縣市鄉鎮中英對照Excel檔(漢語拼音)](https://www.post.gov.tw/post/download/county_h_10706.xls)
- [6.3 村里文字巷中英對照Excel檔 106/02(漢語拼音)](https://www.post.gov.tw/post/download/Village_H_10602.xls)
- [6.5 路街中英對照Excel檔 111/07(漢語拼音)](https://www.post.gov.tw/post/download/6.5_CEROAD11107.xlsx)