SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
GTFS-JP差分抽出ツール
(β版)使い方
2020.2.17 Code for Takaoka
GTFS-JP差分抽出ツール(β版)とは
***** GTFSファイルの差分出力 *****
【ファイルの差分】
[削除されたファイル] なし
[追加されたファイル] なし
【フィールドの差分】
[削除されたフィールド] なし
[追加されたフィールド] なし
【事業者情報[agency.txt]の差分】
[削除されたagency_id] なし
[追加されたagency_id] なし
[フィールド値の変化]
なし
【事業者追加情報[agency_jp.txt]の差分】
[削除されたagency_id] なし
[追加されたagency_id] なし
[フィールド値の変化]
なし
(1)エクセルで現行ダイヤ
と改正ダイヤの2つのダイ
ヤを指定
(2)比較開始ボタンを押す
(3)比較結果を出力
GTFS-JPの新旧データの違いを確認するエクセルツール
ダイヤ改正データを作成したあと
こういう確認に使います
• 経路を変更した路線・時刻を変更した便など、ダイヤ改正
で変更した部分がダイヤ改正前のGTFSとダイヤ改正後の
GTFSで正しく変更されていることを確認する
• それ以外の変更していない路線や便などが、誤って変更さ
れていないことを確認する
改正前後のデータを機械的に比較して
チェックすることで、作業の誤りを減らします
ダウンロード
https://home.csis.u-tokyo.ac.jp/ nishizawa/gtfs/
または
西沢ツール で検索
使い方
1. 西沢ツールまたはその筋屋で出力した標準的なバス情報
フォーマット(GTFS-JP)のzipファイルを(a)ダイヤ改
正前と(b)ダイヤ改正後の2つ準備し、それぞれ別のフォ
ルダに解凍しておく
(a)ダイヤ改正前のデータ (b)ダイヤ改正後のデータ
使い方
2. GTFS-JP差分抽出ツール(β版)(エクセルファイル)
を開き、マクロを有効化(コンテンツの有効化)する
3. プログラムを開始するボタンを押す
使い方
4. ①現行ファイル選択ボタンをクリックし、1.で解凍した
(a)ダイヤ改正前のデータのagancy.txtを開く
使い方
5. 4.と同様に②改正ファイル選択ボタンをクリックし、1.で
解凍した(b)ダイヤ改正後のデータのagancy.txtを開く
使い方
6. ③比較開始ボタンをクリックすると、比較処理が始まる
ので、処理が終わるまで待つ
使い方
7. 比較が完了すると、ドキュメントフォ
ルダに2つファイルが出力される。
A. GTFS差分出力+(年月日)+(時分).txt
B. GTFS差分出力+(年月日)+(時分)_時刻表.csv
比較結果の確認 A. (1)
***** GTFSファイルの差分出力 *****
【ファイルの差分】
[削除されたファイル] なし
[追加されたファイル] なし
【フィールドの差分】
[削除されたフィールド] なし
[追加されたフィールド] なし
【事業者情報[agency.txt]の差分】
[削除されたagency_id] なし
[追加されたagency_id] なし
[フィールド値の変化]
なし
【事業者追加情報[agency_jp.txt]の差分】
[削除されたagency_id] なし
[追加されたagency_id] なし
[フィールド値の変化]
なし
A. GTFS差分出力+(年月日)+(時分).txt
西沢ツールやその筋屋で出力したGTFSの場合、
通常差分なし
事業者名やURLなどが変わったら差分が出る
比較結果の確認 A. (2)
【事業者追加情報[feed_info.txt]の差分】
[削除されたfeed_publisher_name] なし
[追加されたfeed_publisher_name] なし
[フィールド値の変化]
feed_publisher_name= 標準的なバス株式会社
/ feed_start_date= 20191220 -> 20200128
feed_publisher_name= 標準的なバス株式会社
/ feed_end_date= 20201219 -> 20210126
feed_publisher_name= 標準的なバス株式会社
/ feed_version= 20191001_2019年10月01日
(標準バス 12.21∼) ->
20191001_2019年10月01日(標準バス 2.1最新)
変化数= 3
A. GTFS差分出力+(年月日)+(時分).txt
ダイヤの有効期間(開始日∼終了日)を
変更するとここに差分が出力される
比較結果の確認 A. (3)
【停留所・標柱情報[stops.txt]の差分】
[削除されたstop_id] なし
[追加されたstop_id] なし
[フィールド値の変化]
なし
【経路情報[routes.txt]の差分】
[削除されたroute_id] = 2
route_id= 400_1_2 / route_short_name=
/ route_long_name= ぐるりんバス右回り
route_id= 400_2_1 / route_short_name=
/ route_long_name= ぐるりんバス左回り
[追加されたroute_id] なし
[フィールド値の変化]
なし
A. GTFS差分出力+(年月日)+(時分).txt
標柱の削除・追加・変更があれば
ここに差分が出力される
路線の削除・追加・変更があれば
ここに差分が出力される
比較結果の確認 A. (4)
【便情報[trips.txt]の差分】
[削除されたtrip_id] = 2
trip_id= 平日_14時00分_系統400_2_1
/ route_id= 400_2_1 / service_id= 平日
trip_id= 平日_14時50分_系統400_1_2
/ route_id= 400_1_2 / service_id= 平日
[追加されたtrip_id] = 3
trip_id= 平日_10時05分_系統400_1_1
/ route_id= 400_1_1 / service_id= 平日
trip_id= 平日_14時00分_系統400_2_2
/ route_id= 400_2_2 / service_id= 平日
trip_id= 土日祝_21時30分_系統324_1
/ route_id= 324_1 / service_id= 土日祝
[フィールド値の変化]
trip_id= 平日_07時08分_系統501_1_2 /
trip_headsign= 市内循環 -> 市内循環(駅前経由)
A. GTFS差分出力+(年月日)+(時分).txt
便の削除・追加・変更があれば
ここに差分が出力される
比較結果の確認 A. (5)
【通過時刻情報[stop_times.txt]の差分】
  ※改正前後で同じtrip_idの便について、
①起点・終点の違い、②バス停数の違い、
③バス停並びの違いの優先順位で表示します。
   上位の違いがあるときは下位の違いは表示されません。
   バス停並びが同じとき、各バス停の発着時刻、
stop_headsign、pickup_type、drop_off_typeに違いが
ある場合は別ファイルに出力されます。
trip_id= 平日_06時00分_系統112_2_1
バス停数が異なります
/ 改正前のバス停数= 32 -> 改正後のバス停数= 33
A. GTFS差分出力+(年月日)+(時分).txt
停車停留所に変更がある場合
ここに差分が出力されます
停車時刻の違いなどの詳細は
csv(もう1つの出力ファイル)
に出力されます
比較結果の確認 A. (6)
【運賃属性情報[fare_attributes.txt]の差分】
[削除されたfare_id] = 1
fare_id= 530_00
[追加されたfare_id] なし
[フィールド値の変化]
なし
A. GTFS差分出力+(年月日)+(時分).txt
運賃情報に削除・追加・変更があれば
ここに出力されます
比較結果の確認 B.
B. GTFS差分出力+(年月日)+(時分)_時刻表.csv
csv(もう1つの出力されたファイル)には時刻などの詳細が出力されます
stop_headsignがダイヤ改正前後で変更されているので、
「差」の列に「*」が出力されています

Weitere ähnliche Inhalte

Empfohlen

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Empfohlen (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

GTFS-JP差分抽出ツール(β版)使い方