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
nonki1974
September 15, 2018
Technology
0
270
gtfsr package @ fukuoka.R #11
fukuoka.R #11のLTでgtfsr packageを紹介しました。
nonki1974
September 15, 2018
Tweet
Share
More Decks by nonki1974
See All by nonki1974
GTFS with Tidytransit package
nonki1974
0
200
TokyoR#84_Rexams
nonki1974
0
170
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
720
Introduction to R
nonki1974
0
300
Introduction to dplyr
nonki1974
0
360
Introduction to ggplot2
nonki1974
1
420
Analyzing PSB tracks with R
nonki1974
0
510
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
54
所要時間のヒートマップを作成する
nonki1974
0
390
Other Decks in Technology
See All in Technology
GraphQL 成熟度モデルの紹介と、プロダクトに当てはめた事例 / GraphQL maturity model
mh4gf
7
1.3k
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
240
KubeConにproposalを送りたい人へのアドバイス
sat
PRO
3
230
SPI原点回帰論:事業課題とFour Keysの結節点を見出す実践的ソフトウェアプロセス改善 / DevOpsDays Tokyo 2024
visional_engineering_and_design
4
1.9k
エンジニアのキャリアをちょっと楽しくする3本の軸/Three Pillars to Make an Engineer's Career More Enjoyable
kwappa
0
2.6k
自己改善からチームを動かす! 「セルフエンジニアリングマネージャー」のすゝめ
shoota
6
260
継続的な改善 x ⾮連続的な進化
sansantech
PRO
3
140
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
750
エンジニア候補者向け資料2024.04.24.pdf
macloud
0
3.3k
KubeCon EU 2024 Recap “Kubernetes Policy Time Machine: Where to Next?”
ryysud
0
200
プラットフォームってつくることより計測することが重要なんじゃないかという話 / Platform Engineering Meetup #8
taishin
1
340
コンパウンドスタートアップのためのスケーラブルでセキュアなInfrastructure as Codeパイプラインを考える / Scalable and Secure Infrastructure as Code Pipeline for a Compound Startup
yuyatakeyama
4
4.7k
Featured
See All Featured
Producing Creativity
orderedlist
PRO
337
39k
The Pragmatic Product Professional
lauravandoore
25
5.8k
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Large-scale JavaScript Application Architecture
addyosmani
504
110k
Code Review Best Practice
trishagee
55
15k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
14
1.5k
Designing for humans not robots
tammielis
248
25k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Web development in the modern age
philhawksworth
202
10k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
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!