HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- title: "政府公開通訊錄" tags: kuansim,hackpad --- # 政府公開通訊錄 > [點此觀看原始內容](https://g0v.hackpad.tw/g6v6MpyacFb) ## 來龍去脈 ### 主旨 有問題要回報或是要聯絡單位的時候,提供查詢電話或地址功能 源起是[鄉民關心你](https://g0v.hackpad.com/mynkDCEAXgc),在想要找到對的窗口的時候,需要有電話聯絡方式。後來發現其實沒有人有整理這方面的資訊,就把政府機關的聯絡方式整理成聯絡人,提供大家使用 ### 牽涉領域 公家機關 | 通訊錄 | 聯絡人 ### 相關組織單位 政府機關、立法委員、縣市議員 ### 相關專案 - [鄉民關心你](http://hack.g0v.tw/kuansim) - [我打了電話](http://hack.g0v.tw/kuansim/HM8MBTIU8Pp) - [政府公開通訊錄 iOS App](http://hack.g0v.tw/kuansim/MEZ33mTjHB9) ### 授權方式 資料部份使用 CC-0 授權 程式碼部份同鄉民關心你 ### 使用資料 - 政府機關單位列表 [http://oid.nat.gov.tw/infobox1/personmain.jsp](http://oid.nat.gov.tw/infobox1/personmain.jsp) 結構解析參考 [http://data.g0v.tw/questions/11/](http://data.g0v.tw/questions/11/) - 各地派出所 [http://data.gov.tw/opendata/Details?sno=301000000A-00001](http://data.gov.tw/opendata/Details?sno=301000000A-00001) - 政府機關名錄 [http://www.gov.tw/orginfo/ORPF-GOV-01.aspx](http://www.gov.tw/orginfo/ORPF-GOV-01.aspx) - 內政部消防署防救災入口網 [http://portal.ndppc.nat.gov.tw/portal/chinese/user/selectouoid.jsp](http://portal.ndppc.nat.gov.tw/portal/chinese/user/selectouoid.jsp) - GCA [http://gca.nat.gov.tw/07-01-06.html](http://gca.nat.gov.tw/07-01-06.html) - OID [http://oid.nat.gov.tw/OIDWeb/chmain.html](http://oid.nat.gov.tw/OIDWeb/chmain.html) > 消防單位 ? > [name=Superbil] - 公文電子交換地址簿 [http://data.gov.tw/node/7617](http://data.gov.tw/node/7617) \[點CVS的超連結可以下載\] (之前做公文簽核系統有用到,它是應用在政府機關電子公文交換的通訊錄,其實就是個CVS檔) - 立法委員 [g0v/addressbook.parser#3](https://github.com/g0v/addressbook.parser/issues/3) - 國會議員 [g0v/addressbook.parser#16](https://github.com/g0v/addressbook.parser/issues/16) > 目前要處理的需求放在 [https://github.com/g0v/addressbook.parser/issues?state=open](https://github.com/g0v/addressbook.parser/issues?state=open) > [name=Superbil] ### 專案目前狀態 處理需求中 ## 目標與功能 ### 預定使用者 - 想發起人們打電話或 E-mail 給政府單位或立法委員 - 想打電話或 E-mail 給政府單位或立法委員 ### 預定功能 -  資料輸入 - Google 表單工人輸入 > 主要的資料處理完後才有可能需要 > [name=Superbil] - [政府機關列表](http://oid.nat.gov.tw/infobox1/personindex.jsp) - json -  資料輸出 - json 交換使用 - vCard ? - 用 cardDAV 連接,即時更新資料庫 - 不提供 - 不提供查詢電話號碼功能 - 不提供代繳電話費 - 不提供自動播號功能 ### 使用方式 TBD ## 實做細節 ### 使用技術與工具 - data - [parsed raw data](https://github.com/g0v/addressbook.parser) - [data convert from data.gov.tw](https://github.com/g0v/addressbook-data-converter) Server - jsDAV(webDAV only) or Radicale PgRest Server - parse sourcer: github.com/addressbook.parser - backend server source: github.com/g0v/api.addressbook - api server: [http://pgrest.io/hychen/api.addressbook/v0/collections/organizations/](http://pgrest.io/hychen/api.addressbook/v0/collections/organizations/) ### 產出檔案格式 - ~格式 (用 dictionay 儲存)~ - ~OID~ - ~中文名稱~ - ~電話 *~ - ~公司 *~ - ~電話~ - ~郵遞區號~ - ~地址~ - ~傳真~ - ~英文名稱~ - ~網址~ - ~Email~ - ~報案系統/Issue Tracking System(如果有的話)~ > 報案系統的話~可以之後再結合喲 [1.0 Citizen Police Radio CPR](https://g0v.hackpad.tw/poC9Ox6QDfB) > [name=Ymow W] - 格式使用 [popolo.organization](http://popoloproject.com/specs/organization.html) > popolo 不夠用,需要再整理細項 > [name=Superbil] [extend popolo](https://g0v.hackpad.tw/4FYtOSv9vl6#extend-popolo) ### 資料庫 - CardDAV - ~Database backend~ - [~Firebase~](https://www.firebase.com/) - ~vCard~ - [~pgRest~](https://github.com/clkao/pgrest) ### Mockup - [通訊錄Mockup](https://g0v.hackpad.tw/PbgdGwk3ppL) ### 進度與 to-do - [x] 確認現有資料來源 - [x] 爬資料,存成 json - [x] 解析網址 big5 -> utf8 - [x] 解析網址,成 dictionary - [x] 發出 request 解析結果,成 dictionary - [x] 解析儲存結果成 json - [ ] 提供人工智彗輸入 (Google 表格) > 在準備好現有資料來源後再準備 > [name=Superbil] - [x] 放入資料庫 - [ ] 實作(餵給)產生 CardDAV 資料輸出 - [x] json 輸出 - [ ] ~vCard 輸出~ ### 現有成果 ## 開發者 ### 技術指導 [HisnYi Chen](https://g0v.hackpad.tw/ep/profile/pgKgmUWKew6GVUKgrhRX7) ### 分工與成員 [Superbil](https://g0v.hackpad.tw/ep/profile/moc6aptbPH9) ## 介面  支援 cardDAV 的 client > 參考資料:[https://itunes.apple.com/us/app/reach-network/id570134451?mt=8](https://itunes.apple.com/us/app/reach-network/id570134451?mt=8) > [name=Ymow W] > iPhone iOS 6 以上都可以支援 cardDAV, OS 內建 > [name=Superbil]

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.