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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
nonki1974
September 15, 2018
Technology
360
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
340
TokyoR#84_Rexams
nonki1974
0
220
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
920
Introduction to R
nonki1974
0
380
Introduction to dplyr
nonki1974
0
550
Introduction to ggplot2
nonki1974
1
540
Analyzing PSB tracks with R
nonki1974
0
610
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
79
所要時間のヒートマップを作成する
nonki1974
0
590
Other Decks in Technology
See All in Technology
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
50k
Javaで学ぶSOLID原則
negima
1
270
運用を見据えたAIエージェント設計実践
amacbee
1
2.4k
noUncheckedIndexedAccess、3時間、1万円。 / noUncheckedIndexedAccess, 3 Hours, 10,000 JPY.
kaonavi
1
170
AI駆動開発が変える、大規模開発の前提 ーHuman in the Loop から Human on the Loop へ / AIE2026
visional_engineering_and_design
2
2.2k
BigQuery の Cross-cloud Lakehouse への歩み
phaya72
2
540
Diagnosing performance problems without the guesswork
elenatanasoiu
0
160
Platform engineering for developers, architects & the rest of us (AI agents)
danielbryantuk
0
180
oracle-to-databricks-migration-with-llm-and-dbt
casek
1
430
Claude Codeを組織で使いこなす— サーバサイドAIエージェント運用の実践知
techtekt
PRO
0
190
AI フレンドリーなエラー監視を TypeScript で実現する
shinyaigeek
2
250
コードレビューを制するチームがソフトウェアデリバリーのフローを制す / Beyond Code Review: Distributing Its Responsibilities Across the SDLC
mtx2s
3
920
Featured
See All Featured
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
380
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
600
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
We Are The Robots
honzajavorek
0
240
Raft: Consensus for Rubyists
vanstee
141
7.5k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
560
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!