knooppuntnet
knooppuntnet copied to clipboard
Another consistency issue in Monitor
At https://knooppuntnet.nl/fr/monitor/groups/fr-iwn-Camino, Chemin-Lyon appears with 2 segments. When one clicks on https://knooppuntnet.nl/fr/monitor/groups/fr-iwn-Camino/routes/Voie-Lyon, it appears with much more segments (something like 7).
After filling in the gaps in the route relation members, improving the member sorting order and moving ways from super relation into subrelations, the route structure now looks ok:
It is still possible to have routes where the overall OSM segment count is less than the sum of the OSM segment counts of the individual relations in the hierarchy. This is because the current algorithm tries to sort all OSM segments in all relations into paths from start to finish. When OSM segments in subrelations connect to segments in other subrelation or the root relation, they are combined to a single OSM segment at root level.
This was the reason for a segment count 2 at root level, and 3+5+1 segments in the relations in the original example.
This issue is left open to further investigate if it makes sense to not have this sorting/combining logic at root level, and to just use the sorting order of the subrelations in the super relation (as is now done in the analysis of each individual relation).
Look at this together with #348.