Scripts to quality-check bus network

Posted by YPGGUUY on 4/30/2023

https://github.com/OSMChina/osm-busqc

简易的公交网络检查脚本
* 打印全部线路
* 检查线路主线/具体线路缺失
* 检查线名/站名缺失
* 检查首末站

可能倒闭也可能变质.

A little weekend project to check local bus network integrity.
* print all routes and stops
* check missing master routes/routes
* check missing names
* check inconsistent terminals name by comparing route[from]/[to] with platform[name]

may or may not maintain or further develop.

Depends on osm_easy_api, thanks to them.

samples:

首末站不正:

1 2 3 4 5 6 7 主线 2 2 路: 火车站综合体 -> 塔东路东堤湾 火车站综合体 波海公园 西江北路中 体育中心西门 体育中心南门 康乐北路 康乐市场 康乐中路 披云楼 北门 豪居路 中心市场 大柑园 工农北路南 友谊路口 和平路中 城东公园北门 前进中路 市公安局 前进南路 塔东路东堤湾 和平路西 华佗医院 wrong on route 13853854 AssertionError: inconsistent terminal 2 路: 塔东路东堤湾 -> 火车站综合体 塔东路东堤湾 前进南路 市公安局 前进中路 城东公园北门 和平路中 端州公安分局 端州四路东 工农北路 友谊路口 工农北路南 大柑园 中心市场 豪居路 北门 披云楼 康乐中路 康乐市场 康乐北路 体育中心南门 体育中心西门 西江北路中 蕉园 波海公园 火车站综合体

线路缺失:

1 2 3 4 5 6 7 主线 5B 5B 路: 火车站综合体 -> 岭塘村 火车站综合体 大桥路北 华英名都 惠民居 玑东路南 大鼎路中 一中实验学校 太和南路 端州七路中 睦岗 八中 棠下 肇庆大道西 三榕港 三榕水厂 黄禁 大龙桥 小湘军校 新屋村 wrong on route 14464670 AssertionError: inconsistent terminal wrong on master 15749944 AssertionError: inconsistent route count

主线缺失:

1 2 3 4 5 6 wrong on master 35 AssertionError: missing master 35 wrong on master 36 AssertionError: missing master 36 wrong on master K01 AssertionError: missing master K01