Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
gtfsr package @ fukuoka.R #11
Search
nonki1974
September 15, 2018
Technology
370
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
350
TokyoR#84_Rexams
nonki1974
0
240
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
940
Introduction to R
nonki1974
0
400
Introduction to dplyr
nonki1974
0
570
Introduction to ggplot2
nonki1974
1
560
Analyzing PSB tracks with R
nonki1974
0
640
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
85
所要時間のヒートマップを作成する
nonki1974
0
620
Other Decks in Technology
See All in Technology
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.4k
Optunaの最新リリースv5.0について
pfn
PRO
0
120
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
140
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
180
Local CI × GitHub Actions
gogutan
3
230
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
850
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
200
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
5
1.2k
USB PDを使ってスマホを労わりたい
raspython3
0
180
会社紹介資料 / Sansan Company Profile
sansan33
PRO
31
430k
WasmをRustにする
sansantech
PRO
0
300
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
140
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
290
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Building Applications with DynamoDB
mza
96
7.2k
Thoughts on Productivity
jonyablonski
76
5.4k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
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!