Paths are generated by connecting the route's node-members that look like stops. The contained ways are ignored.
Data © OpenStreetMap contributors, ODBL; Map Tiles © OpenStreetMap, CC-BY-SA
The source code of these validation scripts is available under GPL at https://github.com/stefanschramm/osm_oepnv_validator.