UDC2017_ファイナル_GTFS OSM-EX
- 2. GTFS
General Transit Feed Specification
http://www.mlit.go.jp/common/001179007.pdf
UrbanDataChallenge 2017
UDCな皆さんはきっともう作ってる
おそらく説明不要
https://developers.google.com/transit/
- 3. GTFS
General Transit Feed Specification
GTFSは13個のCSVファイルで構成
(標準バスフォーマットは追加で3つ)
UrbanDataChallenge 2017
-------
-------
-------
CSV
agency.txt
-------
-------
-------
CSV
stops.txt
-------
-------
-------
CSV
routes.txt
-------
-------
-------
CSV
trips.txt
-------
-------
-------
CSV
stop_times.txt
-------
-------
-------
CSV
calendar.txt
-------
-------
-------
CSV
calendar_dates.txt
-------
-------
-------
CSV
fare_attributes.txt
-------
-------
-------
CSV
fare_rules.txt
-------
-------
-------
CSV
shapes.txt
-------
-------
-------
CSV
frequencies.txt
-------
-------
-------
CSV
transfers.txt
-------
-------
-------
CSV
feed_info.txt
-------
-------
-------
CSV
agency_jp.txt
-------
-------
-------
CSV
routes_jp.txt
-------
-------
-------
CSV
office_jp.txt
- 4. GTFS
General Transit Feed Specification
必須は6個のCSVファイル
(他は省略可能)
UrbanDataChallenge 2017
-------
-------
-------
CSV
agency.txt
-------
-------
-------
CSV
stops.txt
-------
-------
-------
CSV
routes.txt
-------
-------
-------
CSV
trips.txt
-------
-------
-------
CSV
stop_times.txt
-------
-------
-------
CSV
calendar.txt
-------
-------
-------
CSV
calendar_dates.txt
-------
-------
-------
CSV
fare_attributes.txt
-------
-------
-------
CSV
fare_rules.txt
-------
-------
-------
CSV
shapes.txt
-------
-------
-------
CSV
frequencies.txt
-------
-------
-------
CSV
transfers.txt
-------
-------
-------
CSV
feed_info.txt
-------
-------
-------
CSV
agency_jp.txt
-------
-------
-------
CSV
routes_jp.txt
-------
-------
-------
CSV
office_jp.txt
- 13. 試しにやってみた ▶ GTFS OSM-ex
UrbanDataChallenge 2017
● 神奈川中央交通の4系統
○ 秦野08系統(秦野駅⇔渋沢駅)
○ 秦野20系統(秦野駅⇔蓑毛)
powered by OpenStreetMap
○ 秦野38系統(秦野駅⇔神奈川大学)
○ 秦野39系統(秦野駅⇔神奈川大学)
秦野駅 秦野駅
© OpenStreetMap Contributors
- 14. 試しにやってみた ▶ GTFS OSM-ex
UrbanDataChallenge 2017
● 神奈川中央交通の4系統
○ 秦野08系統(秦野駅⇔渋沢駅)
○ 秦野20系統(秦野駅⇔蓑毛)
powered by OpenStreetMap
○ 秦野38系統(秦野駅⇔神奈川大学)
○ 秦野39系統(秦野駅⇔神奈川大学)
単純な路線ならできそう
秦野駅 秦野駅
© OpenStreetMap Contributors
- 16. shapes.txt 追加
shapes.txt の無かったGTFSに勝手に追加
UrbanDataChallenge 2017
金沢ふらっとバス
GTFS ▶ https://github.com/tshimada291/kanazawa_flatbus_GTFS
http://www4.city.kanazawa.lg.jp/11310/taisaku/flatbus/index.html
OpenStreetMap
http://www4.city.kanazawa.lg.jp/data/open/cnt/3/12380/1/map201607211.jpg
http://www4.city.kanazawa.lg.jp/data/open/cnt/3/19242/1/IMG_2593.JPG
© OpenStreetMap Contributors
© Kanazawa city
- 17. shapes.txt 追加
shapes.txt の無かったGTFSに勝手に追加
UrbanDataChallenge 2017
金沢ふらっとバス
GTFS ▶ https://github.com/tshimada291/kanazawa_flatbus_GTFS
http://www4.city.kanazawa.lg.jp/11310/taisaku/flatbus/index.html
http://www4.city.kanazawa.lg.jp/data/open/cnt/3/19242/1/IMG_2593.JPG
金沢駅
© OpenStreetMap Contributors
© Kanazawa city
- 18. shapes.txt 追加
shapes.txt の無かったGTFSに勝手に追加
UrbanDataChallenge 2017
金沢ふらっとバス
GTFS ▶ https://github.com/tshimada291/kanazawa_flatbus_GTFS
http://www4.city.kanazawa.lg.jp/11310/taisaku/flatbus/index.html
http://www4.city.kanazawa.lg.jp/data/open/cnt/3/19242/1/IMG_2593.JPG
金沢駅
© OpenStreetMap Contributors
© Kanazawa city
- 19. shapes.txt 追加
shapes.txt の無かったGTFSに勝手に追加
UrbanDataChallenge 2017
金沢ふらっとバス
GTFS ▶ https://github.com/tshimada291/kanazawa_flatbus_GTFS
http://www4.city.kanazawa.lg.jp/11310/taisaku/flatbus/index.html
http://www4.city.kanazawa.lg.jp/data/open/cnt/3/19242/1/IMG_2593.JPG
© OpenStreetMap Contributors
© Kanazawa city
金沢駅
- 20. 金沢駅
shapes.txt 追加
shapes.txt の無かったGTFSに勝手に追加
UrbanDataChallenge 2017
金沢ふらっとバス
GTFS ▶ https://github.com/tshimada291/kanazawa_flatbus_GTFS
http://www4.city.kanazawa.lg.jp/11310/taisaku/flatbus/index.html
http://www4.city.kanazawa.lg.jp/data/open/cnt/3/19242/1/IMG_2593.JPG
© OpenStreetMap Contributors
© Kanazawa city
- 21. GTFS OSM-ex
UrbanDataChallenge 2017
● GTFSにOSMからshapes.txtの追加
○ まだ部分的におかしなところはあるけど割と良い感じ
○ オープンデータ同士の掛け合わせで整備を加速
● shapes.txt があると・・・
○ バス路線を道路上にちゃんと可視化
○ バス経路の総距離・所要時間の算出
○ 乗換できそうなところの把握
○ オンデマンド乗降の検討材料に
- 22. GTFS OSM-ex
UrbanDataChallenge 2017
● GTFSにOSMからshapes.txtの追加
○ まだ部分的におかしなところはあるけど割と良い感じ
○ オープンデータ同士の掛け合わせで整備を加速
● shapes.txt があると・・・
○ バス路線を道路上にちゃんと可視化
○ バス経路の総移動距離・所要時間の算出
○ 乗換できそうなところの把握
○ オンデマンド乗降の検討材料に