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
GTFS with Tidytransit package
Search
nonki1974
May 28, 2023
Technology
0
330
GTFS with Tidytransit package
Yakitori.R#03(2023/05/27)のLTで話した内容です
nonki1974
May 28, 2023
Tweet
Share
More Decks by nonki1974
See All by nonki1974
TokyoR#84_Rexams
nonki1974
0
210
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
910
Introduction to R
nonki1974
0
370
Introduction to dplyr
nonki1974
0
540
Introduction to ggplot2
nonki1974
1
520
Analyzing PSB tracks with R
nonki1974
0
600
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
73
所要時間のヒートマップを作成する
nonki1974
0
570
gtfsr package @ fukuoka.R #11
nonki1974
0
350
Other Decks in Technology
See All in Technology
生成AIの利用とセキュリティ /gen-ai-and-security
mizutani
1
1.5k
Yahoo!ショッピングのレコメンデーション・システムにおけるML実践の一例
lycorptech_jp
PRO
1
180
トップマネジメントとコンピテンシーから考えるエンジニアリングマネジメント
zigorou
4
800
[JAWSDAYS2026][D8]その起票、愛が足りてますか?AWSサポートを味方につける、技術的「ラブレター」の書き方
hirosys_
3
110
Claude Code Skills 勉強会 (DevelersIO向けに調整済み) / claude code skills for devio
masahirokawahara
0
6.5k
Abuse report だけじゃない。AWS から緊急連絡が来る状況とは?昨今の攻撃や被害の事例の紹介と備えておきたい考え方について
kazzpapa3
1
330
EMからVPoEを経てCTOへ:マネジメントキャリアパスにおける葛藤と成長
kakehashi
PRO
9
1.4k
類似画像検索モデルの開発ノウハウ
lycorptech_jp
PRO
4
1.1k
8万デプロイ
iwamot
PRO
2
200
Datadog の RBAC のすべて
nulabinc
PRO
3
410
組織全体で実現する標準監視設計
yuobayashi
2
440
vLLM Community Meetup Tokyo #3 オープニングトーク
jpishikawa
0
250
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
390
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
120
Designing for Timeless Needs
cassininazir
0
150
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
150
Are puppies a ranking factor?
jonoalderson
1
3.1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.1k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
190
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Transcript
GTFS with Tidytransit package @nonki1974
None
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
stop_times.txt
route.txt
Tidytransit package
GTFS https://ckan.odpt.org/dataset/b_bus_gtfs_jp-toei
GTFS -> sf toeibus <- read_gtfs("./ToeiBus-GTFS.zip") # attributionsのidが空になっているので警告が出る # GTFSオブジェクトとして読み込まれず単なるリストになる
# 修正してから as_tidygtfs() 関数で改めてGTFSオブジェクトに変換 toeibus$attributions$attribution_id <- 1:2 toeibus <- as_tidygtfs(toeibus) toeibus <- gtfs_as_sf(toeibus) ggplot(toeibus$shapes) + geom_sf() + theme_minimal() ggplot(toeibus$stops) + geom_sf() + theme_minimal()
None
None
leaflet leaflet() %>% addTiles() %>% addPolylines(data = toeibus$shapes) %>% addMarkers(
data = toeibus$stops, label = toeibus$stops$stop_name )
leaflet
None
Enjoy!!