grote / osm2gtfs

Turn OpenStreetMap data and schedule information into GTFS
GNU General Public License v3.0
99 stars 31 forks source link

Avoid warnings about malformed station on routes relations #140

Closed pantierra closed 6 years ago

pantierra commented 6 years ago

Currently when checking the relations coming from OSM for suitable stop_areas to create stations, the relations that include the routes themselves are checked and throw an error, that they are no good stop_areas. This PR proposes an additional check to avoid misleading warning.

pantierra commented 6 years ago

Thanks for the suggestion, @nlehuby. Added accordingly and rebased this PR.

pantierra commented 6 years ago

Fixed and rebased again on newest master.

grote commented 6 years ago

After return, you wouldn't need an else branch and indentation of the entire block, but fine ;)