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
280
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
230
TokyoR#84_Rexams
nonki1974
0
180
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
760
Introduction to R
nonki1974
0
300
Introduction to dplyr
nonki1974
0
380
Introduction to ggplot2
nonki1974
1
450
Analyzing PSB tracks with R
nonki1974
0
530
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
56
所要時間のヒートマップを作成する
nonki1974
0
430
Other Decks in Technology
See All in Technology
エンジニアリングマネージャーはどう学んでいくのか #devsumi / How Do Engineering Managers Continue to Learn and Grow?
expajp
4
1.3k
JBUG岡山 #6 WordCamp男木島の チームビルディング
takeshifurusato
0
150
[NIKKEI Tech Talk] KDDI/KAG Scrum & Community for Engineering Training
curanosuke
2
220
Git 研修 Basic【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
310
What is DRE? - Road to SRE NEXT@広島
chanyou0311
3
620
What if...? 처음부터 다시 LLM 어플리케이션을 개발한다면
huffon
0
1k
Azure OpenAI Service Dev Day / LLMでできる!使える!生成AIエージェント
masahiro_nishimi
3
740
ABEMAにおけるLLMを用いたコンテンツベース推薦システム導入と効果検証
cyberagentdevelopers
PRO
1
700
AIエージェントを現場に導入する目線とは
masahiro_nishimi
1
1.5k
GoとアクターモデルでES+CQRSを実践! / proto_actor_es_cqrs
ytake
1
150
AWSでRAGを作る法方
sonoda_mj
1
140
サービス開発を前に進めるために 新米リードエンジニアが 取り組んだこと / Steps Taken by a Novice Lead Engineer to Advance Service Development
nologyance
0
180
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
63
4.2k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
RailsConf 2023
tenderlove
16
720
A designer walks into a library…
pauljervisheath
201
24k
WebSockets: Embracing the real-time Web
robhawkes
59
7.2k
The Cost Of JavaScript in 2023
addyosmani
31
4.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
35
6.3k
The Invisible Customer
myddelton
117
13k
The World Runs on Bad Software
bkeepers
PRO
63
11k
Into the Great Unknown - MozCon
thekraken
20
1.3k
What's new in Ruby 2.0
geeforr
338
31k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
13
430
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!