Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
gtfsr package @ fukuoka.R #11
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
nonki1974
September 15, 2018
Technology
350
0
Share
gtfsr package @ fukuoka.R #11
fukuoka.R #11のLTでgtfsr packageを紹介しました。
nonki1974
September 15, 2018
More Decks by nonki1974
See All by nonki1974
GTFS with Tidytransit package
nonki1974
0
330
TokyoR#84_Rexams
nonki1974
0
220
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
920
Introduction to R
nonki1974
0
370
Introduction to dplyr
nonki1974
0
540
Introduction to ggplot2
nonki1974
1
530
Analyzing PSB tracks with R
nonki1974
0
600
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
75
所要時間のヒートマップを作成する
nonki1974
0
590
Other Decks in Technology
See All in Technology
Shipping AI Agents — Lessons from Production
vvatanabe
0
240
[OpsJAWS 40]リリースしたら終わり、じゃなかった。セキュリティ空白期間をAWS Security Agentで埋める
sh_fk2
3
240
Digitization部 紹介資料
sansan33
PRO
1
7.3k
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
9
2k
ぼくがかんがえたさいきょうのあうとぷっと
yama3133
0
190
Eight Engineering Unit 紹介資料
sansan33
PRO
3
7.3k
Good Enough Types: Heuristic Type Inference for Ruby
riseshia
1
230
みんなで作るAWS Tips 100連発 (FinOps編)
schwrzktz
1
300
260420_スマートホーム採用説明 - wakinchan
wakinchan
0
100
Keeping Ruby Running on Cygwin
fd0
0
160
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
23k
The Journey of Box Building
tagomoris
4
2.8k
Featured
See All Featured
Paper Plane
katiecoart
PRO
1
49k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.6k
How to Talk to Developers About Accessibility
jct
2
180
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
500
Crafting Experiences
bethany
1
110
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
890
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Transcript
gtfsr package ͬͯΈͨ @nonki1974 fukuoka.R #11 2018/09/15
GTFS General Transit Feed Specification
平たくいうと 公共交通に関する情報 を記述するための(標準?)規格 路線 駅・停留所 時刻表 運賃表 運⾏会社
ファイル構成 ※以下のファイル群が圧縮されたzipファイル ϑΝΠϧ໊ ༰ agency.txt 運⾏会社等の情報 stops.txt 駅やバス停の情報 routes.txt 路線情報
trips.txt 運⾏情報 stop_times.txt 停⾞時刻 calendar.txt 運⾏⽇の曜⽇による定義 calendar_dates.txt 運航⽇の⽇付による定義 fare_attributes.txt 料⾦クラス定義 fare_rules.txt 料⾦適⽤ルール shapes.txt 経路のシェープ情報 frequencies.txt 運⾏間隔情報 transferes.txt 乗り換え情報 feed_info.txt フィードの情報
クラス図
route.txt の例
stop_times.txt の例
gtfsr package 1 検索 2 インポート 3 gtfsオブジェクトへの変換 4 検証
5 可視化 【参考】https://techlog.transloc.com/the-gtfsr-package-58fedd2bf8c8
インストール&パッケージのロード
フィードの検索 あらかじめ transitfeeds.com でAPIキーを取得しておく
GTFSフィードのインポート
注 gtfs_obj はGTFSの各テキストファイルを データテーブルにしたものを要素に持つリスト
ルートの抽出
ルートの可視化! leafletで出⼒される
結果
Enjoy!