twgeocode

command module
v0.0.0-...-d8ffbca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: MPL-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

把 民生示警平台 提供的行政區代碼表轉換成易於在程式中使用的格式

提供的格式及版本

所有檔案都是從 民生示警平台 提供的行政區代碼表轉換而來,原檔案的更新日期為 2023.09.06

JSON array

所有原檔案中支援的格式都有提供

  • city-xxx: 相當於原檔案中的縣市分頁
  • district-xxx: 相當於原檔案中的鄉鎮分頁
  • village-xxx: 相當於原檔案中的村里分頁
Sqlite DB

依格式分成 geocode100, geocode103, geocode106, geocode107, geocode112 五個 table,方便直接使用,或是使用簡單的工具轉存進其他 DB

檔案是如何產生的

使用 docker (推薦)

在 Linux 環境下可以直接執行 docker.sh

Windows 及 MacOS 使用者可以自行調整參數或手動下指令,例如拿掉 user 相關的參數並寫死路徑

docker run -it --rm -v "/path/to/colned/repo:/twgeocode" --workdir /twgeocode golang /twgeocode/gen.sh

直接產生

在 Linux 環境下,安裝好 curl 及 golang 環境後,執行 gen.sh 即可

版權宣告

  • 程式碼部份 (Go 語言及 shell script) 使用 MPLv2 授權
  • 原始對照表檔案的授權依 民生示警平台之授權規定
  • 執行本專案的過程產生的 csv 與 json 檔案使用 CC0 授權

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址