SlideShare ist ein Scribd-Unternehmen logo
1 von 15
府城公車地圖血 史淚
Kagami
Kagami
● 府城人
● 新手 RD
● 資深圖客
● 默默做自己 ~~ 替代役 (144)
● https://github.com/kagami3421
● jimmy3421@gmail.com
動機
● 等兵單時練習 JavaScript 、 CSS 等技術
● 對 OSM 的熱情 只要有愛就沒問題了
● 自己家鄉的公車自己畫 !
● 充實自己的 GitHub
但是 .. 沒有食材怎麼炒菜 ....?
● 2014 年 8 月狀況:
– 只有兩條公車路線 (5 路、 0 路 )
– 繪製公車沒有統一規範
那就自己栽畫吧 !
於是開始了邊畫邊 Coding 的不歸路
建資料
● 建立繪製規範
– http://wiki.openstreetmap.org/wiki/Tainan/Bus_route
● 畫 .. 還是畫
– Remote Mapping 為主
– 每日以 1~2 條為目標
– 到的了就自己實地踏查
● Remote Mapping
– 到處參考
– 請教公車迷
– 困難點
● 站牌位置
● 路線走法
建資料 ( 續 )
● 自行踏查
– 站牌資訊
– 站牌位置
– 路線走法
● 坐一趟就知道
建資料 ( 續 )
● 過了兩個多月 ..
– Done!
圖片來源: öpnvkarte
Coding
● 主要的 framework
– Jquery - 毒品
– Leaflet - 化妝品
● 核心
– 使用 APIv6 下載資料
– folk from Here :
https://github.com/jfirebaugh/leaflet-osm
Coding ( 續 )
● 內部運作
– 下載 (ajax)
– 解開 Route_Master Relation
– 按路線方向和 Member 的 tag ,留下要用的 relation
– 解開 Route Relation
– 轉換為 leaflet 物件:
● node 轉為 marker ( 公車站牌 )
● Way 轉為 polyline ( 公車路線 )
– 丟給 Leaflet render
UI
● 主要地圖
– 主要使用 Bootstrap framework
– 曾丟到 Ptt 老王賣瓜
● 內嵌式地圖
– 動機:
● 向公車迷遊說把我的地圖放進網頁
– 剔除不少 framework ,減輕依賴性
– 寫份教學在 GitHub 上教別人如何使用
OpenData
● 想介接完整的公車動態資料,但 ..
– 還要研議 by 臺南市政府
– 只有半殘的 QrCode 網頁可用
● 只能使用 OpenData Tainan 網站的資料
– http://data.tainan.gov.tw/
– Remote Mapping 的參考大宗
完工了 !
● 成品:
– http://kagami3421.github.io/TainanBusMap/
● 內嵌式地圖範例:
– http://kagami3421.github.io/TainanBusMap/DivTest.html
RoadMap
● 重構 Code
● 無止盡的更新、增加站牌或路線
– 後續維護最麻煩的地方
– 坑阿 Orz
參考資料
● http://nottainanbus.wix.com/tainancitybus
● http://tourguide.tainan.gov.tw/newtnbusweb/

Weitere ähnliche Inhalte

Andere mochten auch

臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版Taipei Smart City PMO
 
嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...
嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...
嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...William Liang
 
臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館
臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館
臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館Taipei Smart City PMO
 
[智慧城市分享] Array of things
[智慧城市分享] Array of things[智慧城市分享] Array of things
[智慧城市分享] Array of thingsTaipei Smart City PMO
 
資訊局PMO臺北市智慧城市2016成果特刊v1.0
資訊局PMO臺北市智慧城市2016成果特刊v1.0資訊局PMO臺北市智慧城市2016成果特刊v1.0
資訊局PMO臺北市智慧城市2016成果特刊v1.0Taipei Smart City PMO
 
唯品会大数据实践 Sacc pub
唯品会大数据实践 Sacc pub唯品会大数据实践 Sacc pub
唯品会大数据实践 Sacc pubChao Zhu
 
雲端產品的用戶體驗檢測重要性與作法
雲端產品的用戶體驗檢測重要性與作法雲端產品的用戶體驗檢測重要性與作法
雲端產品的用戶體驗檢測重要性與作法NTUST
 
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English versionTaipei Smart City PMO
 
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)William Liang
 
物聯網應用全貌以及微軟全球案例
物聯網應用全貌以及微軟全球案例物聯網應用全貌以及微軟全球案例
物聯網應用全貌以及微軟全球案例Herman Wu
 
以物聯網打造智慧城市研討會簡報
以物聯網打造智慧城市研討會簡報以物聯網打造智慧城市研討會簡報
以物聯網打造智慧城市研討會簡報Taipei Smart City PMO
 
Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013
Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013
Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013Cain Ransbottyn
 

Andere mochten auch (14)

智慧車站案例分享
智慧車站案例分享智慧車站案例分享
智慧車站案例分享
 
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-中文版
 
嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...
嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...
嵌入式智慧應用開源軟硬整合新趨勢 (Open Source Software and Hardware Integration Trend for Emb...
 
臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館
臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館
臺北智慧城市專案辦公室公共住宅智慧社區服務說明書工作會議--智慧圖書館
 
[智慧城市分享] Array of things
[智慧城市分享] Array of things[智慧城市分享] Array of things
[智慧城市分享] Array of things
 
資訊局PMO臺北市智慧城市2016成果特刊v1.0
資訊局PMO臺北市智慧城市2016成果特刊v1.0資訊局PMO臺北市智慧城市2016成果特刊v1.0
資訊局PMO臺北市智慧城市2016成果特刊v1.0
 
智慧城市案例分享-columbus
智慧城市案例分享-columbus智慧城市案例分享-columbus
智慧城市案例分享-columbus
 
唯品会大数据实践 Sacc pub
唯品会大数据实践 Sacc pub唯品会大数据实践 Sacc pub
唯品会大数据实践 Sacc pub
 
雲端產品的用戶體驗檢測重要性與作法
雲端產品的用戶體驗檢測重要性與作法雲端產品的用戶體驗檢測重要性與作法
雲端產品的用戶體驗檢測重要性與作法
 
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version
臺北市資訊局PMO臺北市智慧城市2.0.成果展示-English version
 
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
 
物聯網應用全貌以及微軟全球案例
物聯網應用全貌以及微軟全球案例物聯網應用全貌以及微軟全球案例
物聯網應用全貌以及微軟全球案例
 
以物聯網打造智慧城市研討會簡報
以物聯網打造智慧城市研討會簡報以物聯網打造智慧城市研討會簡報
以物聯網打造智慧城市研討會簡報
 
Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013
Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013
Privacy is an Illusion and you’re all losers! - Cryptocow - Infosecurity 2013
 

Mehr von Shi-Xun Hong

OpensStreetMap Workshop
OpensStreetMap WorkshopOpensStreetMap Workshop
OpensStreetMap WorkshopShi-Xun Hong
 
Building theme map step by step
Building theme map step by stepBuilding theme map step by step
Building theme map step by stepShi-Xun Hong
 
How to use JOSM editor
How to use JOSM editorHow to use JOSM editor
How to use JOSM editorShi-Xun Hong
 
Openstreetmap Introduce
Openstreetmap IntroduceOpenstreetmap Introduce
Openstreetmap IntroduceShi-Xun Hong
 
OpenStreetMap Making Theme Maps / 製作主題地圖
OpenStreetMap Making Theme Maps / 製作主題地圖OpenStreetMap Making Theme Maps / 製作主題地圖
OpenStreetMap Making Theme Maps / 製作主題地圖Shi-Xun Hong
 
OpenStreetMap Editing Tips / 編輯小技巧
 OpenStreetMap Editing Tips / 編輯小技巧 OpenStreetMap Editing Tips / 編輯小技巧
OpenStreetMap Editing Tips / 編輯小技巧Shi-Xun Hong
 
OpenStreetMap Introduce / 介紹
OpenStreetMap Introduce / 介紹OpenStreetMap Introduce / 介紹
OpenStreetMap Introduce / 介紹Shi-Xun Hong
 
Openstreetmap Editing Tutorial / 編輯教學_樹德科大
Openstreetmap Editing Tutorial / 編輯教學_樹德科大Openstreetmap Editing Tutorial / 編輯教學_樹德科大
Openstreetmap Editing Tutorial / 編輯教學_樹德科大Shi-Xun Hong
 
Openstreetmap Promotion / 推廣_樹德科大
Openstreetmap Promotion / 推廣_樹德科大Openstreetmap Promotion / 推廣_樹德科大
Openstreetmap Promotion / 推廣_樹德科大Shi-Xun Hong
 
Open streetmap編輯
Open streetmap編輯Open streetmap編輯
Open streetmap編輯Shi-Xun Hong
 
Openstreetmap 介紹
Openstreetmap 介紹Openstreetmap 介紹
Openstreetmap 介紹Shi-Xun Hong
 

Mehr von Shi-Xun Hong (12)

OpensStreetMap Workshop
OpensStreetMap WorkshopOpensStreetMap Workshop
OpensStreetMap Workshop
 
Building theme map step by step
Building theme map step by stepBuilding theme map step by step
Building theme map step by step
 
How to use JOSM editor
How to use JOSM editorHow to use JOSM editor
How to use JOSM editor
 
Openstreetmap Introduce
Openstreetmap IntroduceOpenstreetmap Introduce
Openstreetmap Introduce
 
OpenStreetMap Making Theme Maps / 製作主題地圖
OpenStreetMap Making Theme Maps / 製作主題地圖OpenStreetMap Making Theme Maps / 製作主題地圖
OpenStreetMap Making Theme Maps / 製作主題地圖
 
OpenStreetMap Editing Tips / 編輯小技巧
 OpenStreetMap Editing Tips / 編輯小技巧 OpenStreetMap Editing Tips / 編輯小技巧
OpenStreetMap Editing Tips / 編輯小技巧
 
OpenStreetMap Introduce / 介紹
OpenStreetMap Introduce / 介紹OpenStreetMap Introduce / 介紹
OpenStreetMap Introduce / 介紹
 
Openstreetmap Editing Tutorial / 編輯教學_樹德科大
Openstreetmap Editing Tutorial / 編輯教學_樹德科大Openstreetmap Editing Tutorial / 編輯教學_樹德科大
Openstreetmap Editing Tutorial / 編輯教學_樹德科大
 
Openstreetmap Promotion / 推廣_樹德科大
Openstreetmap Promotion / 推廣_樹德科大Openstreetmap Promotion / 推廣_樹德科大
Openstreetmap Promotion / 推廣_樹德科大
 
Open streetmap編輯
Open streetmap編輯Open streetmap編輯
Open streetmap編輯
 
Openstreetmap 介紹
Openstreetmap 介紹Openstreetmap 介紹
Openstreetmap 介紹
 
C#
C#C#
C#
 

Tainan Bus Map