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
260
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
190
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
800
Introduction to R
nonki1974
0
320
Introduction to dplyr
nonki1974
0
400
Introduction to ggplot2
nonki1974
1
460
Analyzing PSB tracks with R
nonki1974
0
550
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
56
所要時間のヒートマップを作成する
nonki1974
0
460
gtfsr package @ fukuoka.R #11
nonki1974
0
290
Other Decks in Technology
See All in Technology
塩野義製薬様のAWS統合管理戦略:Organizations設計と運用の具体例
tkikuchi
0
310
안드로이드 기술 이력서의 최소 조건
pluu
1
990
Grafana エコシステムの活用事例 on ABEMA
tetsuya28
5
730
AWS DDKを利用したDataOps事始め
beex
1
170
フェンリルの SwiftUI の研修を覗いてみる / Fenrir SwiftUI Training
studio_rookery
0
150
運営11年目タイトルを守る最強の盾の有効性と活用法
mixi_engineers
PRO
2
120
今日から始める技術的負債の解消
leveragestech
3
440
エンジニアのドメイン知識獲得コストを低減するアプリケーションデザイン
ryo_nagata_
3
150
RSGT Walk Through
kawaguti
PRO
2
380
ReSTIRの数理と実装 (rtcamp10)
yumcyawiz
1
470
Bluesky 2019〜2022
yamarten
1
120
テクニカルライターのチームで「目標」をどう決めたか / MVV for a Team of Technical Writers
lycorptech_jp
PRO
3
150
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
26
4.1k
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
The Language of Interfaces
destraynor
154
24k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
RailsConf 2023
tenderlove
28
860
GraphQLとの向き合い方2022年版
quramy
43
13k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.6k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
How to Think Like a Performance Engineer
csswizardry
18
1k
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!!