Suche senden
Hochladen
用 Ruby 操作 OSM 資料批次匯入:以 YouBike 微笑單車租借站資料為例
•
2 gefällt mir
•
1,875 views
Hui-Hong You
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 19
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Recomendados
OSM community + Mapillary Open Street View = More Real-Time, Friendly Open So...
OSM community + Mapillary Open Street View = More Real-Time, Friendly Open So...
Liang-chih Shangkuan
自製簡易實景調查(街景)車
自製簡易實景調查(街景)車
俊宏 劉
20150627 bigdatala
20150627 bigdatala
gethue
Explore DVB-T SI
Explore DVB-T SI
Hui-Hong You
Arch Linux Taiwan Community Introduction - COSCUP 2017
Arch Linux Taiwan Community Introduction - COSCUP 2017
Hui-Hong You
Besides programming
Besides programming
Hui-Hong You
fcitx-chewing 逐行審查
fcitx-chewing 逐行審查
Hui-Hong You
Coscup 2013 Lightning Talk (was not really presented)
Coscup 2013 Lightning Talk (was not really presented)
Hui-Hong You
Más contenido relacionado
Empfohlen
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Empfohlen
(20)
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
用 Ruby 操作 OSM 資料批次匯入:以 YouBike 微笑單車租借站資料為例
1.
用 Ruby 操作
OSM 資料批次匯入: 以 YouBike 微笑單車開放 資料為例 Huei-Horng Yo (hiroshiyui) <hiroshi@ghostsinthelab.org>
2.
本簡報檔案內容,除引用材料另依其個別授權規定, 歡迎諸方大德依 CC BY-SA
條款自由取用。
3.
我愛自行車
4.
我愛 Ruby 程式語言
5.
當然,我愛 OpenStreetMap
6.
我也好愛 YouBike 啊啊啊
7.
開端
8.
尋覓 ● ● 找到資料所在: 臺北市公共自行車租借站及價格資料 確定 OSM 有公共自行車可用的
tag : Tag:amenity=bicycle_rental - OpenStreet Map Wiki
9.
驗證
10.
驗證 ● ● ● 南港展覽館站有重複的兩筆 YouBike 租賃站資 料 一個應該是自己標定的點位,離實際租賃站有些 微偏離(該處事實上應是自行車停車位…) 一個是符合我所知的實際租賃站所在,但是與我 從北市府拿到的資料,座標的資料精確度卻多了 一位數?
11.
驗證 ● ● 我開始懷疑是我拿到的資料的座標系統大地基準 問題 (TWD67? TWD97?
WGS84?) 打去北市府問是哪種,說要給我回電回覆,結果 沒有下文
12.
驗證
13.
驗證 ● ● ● 對照凌雲市場租賃站的位置,發現北市府提供的 座標資料比較符合我對此站位置的認知(靠近橋 邊) 至此可以假設北市府釋出的這份資料有一定的可 信度 But!
14.
But! 人生就是充滿了各種 But! ● 北市府提供的靜態資料 – – ● CSV
版停在今年五月天 JSON 版則停在九月底 偏偏之後 YouBike 多了好幾站
15.
But! 人生就是充滿了各種 But! ● 寫信去問能不能再匯出一份最新的租賃站靜態資 料 – – ● 叫我去申請「介接臺北市即時交通資訊」 申請機關?統一編號?申請單位印信? 喂,北市府,我只是要一份當下最正確的租賃站 座標資料啊!
16.
呵呵,沒有人理我 ● g0v.tw 座右銘: – 不要問為何沒有人做這個,先承認你就是「沒有 人」。 – 因為,「沒有人」是萬能的。
17.
自己動手,豐衣足食 ● https://github.com/hiroshiyui/youbike ● 用我最熟手的 Ruby 去撈
YouBike 租賃點資料 ● 支援三種格式 – .CSV (仿北市府提供欄位) – .JSON (仿北市府提供欄位) – .OSM (可供 JSOM 匯入處理的 XML 格式)
18.
Demo
19.
謝謝!
Jetzt herunterladen