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
320
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
300
TokyoR#84_Rexams
nonki1974
0
200
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
860
Introduction to R
nonki1974
0
330
Introduction to dplyr
nonki1974
0
450
Introduction to ggplot2
nonki1974
1
490
Analyzing PSB tracks with R
nonki1974
0
580
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
59
所要時間のヒートマップを作成する
nonki1974
0
520
Other Decks in Technology
See All in Technology
Postman AI エージェントビルダー最新情報
nagix
0
110
Github Copilot エージェントモードで試してみた
ochtum
0
100
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
2
210
BigQuery Remote FunctionでLooker Studioをインタラクティブ化
cuebic9bic
3
270
Oracle Audit Vault and Database Firewall 20 概要
oracle4engineer
PRO
3
1.7k
Node-REDのFunctionノードでMCPサーバーの実装を試してみた / Node-RED × MCP 勉強会 vol.1
you
PRO
0
110
Node-RED × MCP 勉強会 vol.1
1ftseabass
PRO
0
140
PHP開発者のためのSOLID原則再入門 #phpcon / PHP Conference Japan 2025
shogogg
4
730
25分で解説する「最小権限の原則」を実現するための AWS「ポリシー」大全 / 20250625-aws-summit-aws-policy
opelab
9
1.1k
Claude Code Actionを使ったコード品質改善の取り組み
potix2
PRO
6
2.2k
フィンテック養成勉強会#54
finengine
0
180
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
150
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Typedesign – Prime Four
hannesfritz
42
2.7k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
210
Mobile First: as difficult as doing things right
swwweet
223
9.7k
The Language of Interfaces
destraynor
158
25k
Rails Girls Zürich Keynote
gr2m
94
14k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
124
52k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.8k
Code Reviewing Like a Champion
maltzj
524
40k
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!