Slide 9
Slide 9 text
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()