osm-ToniE / ptna

Public Transport Network Analysis for OSM
GNU General Public License v3.0
19 stars 5 forks source link

first way is oneway and used in wrong direction #17

Closed osm-ToniE closed 5 years ago

osm-ToniE commented 6 years ago

If the first way is a oneway way and used in wrong direction, the tool simply reports a gap with no further hint. It is hard to detect the issue in the relation with JOSM, because JOSM does not detect that at all. A text like the existing "PTv2 route: using oneway way(s) in wrong direction: %s" should appear also here. Test with Test/RBO-6209-006-issue-17.osm

osm-ToniE commented 6 years ago

Fixed: we already have a special analysis for the first way being a oneway way. extend this by analyzing whether the entry node of the first way (=oneway) corresponds to the first or last node of the second way. if so, we know that the first way (=oneway) is used in wrong direction "PTv2 route: using oneway way(s) in wrong direction:".

osm-ToniE commented 5 years ago

There was an issue with oneway=-1 on the first way. Caused by a single '=' in an if statement. Created two new test files. deleted an old test file (replaced by the new tests)