Repository navigation
WIP: Via way restrictions - #2656
lukasalexanderweber wants to merge 24 commits into
Conversation
7988305 to
9e42b1e
Compare
|
At the moment I think that the Restriction graph approach of OSRM could be applicable for graphhoppers graph creation, too. If you think so too, i would try to implement this. |
Not sure if it is applicable as they use an edge-based graph (nodes are road segments) and our graph is node-based (nodes are junctions) |
ad33bf9 to
1e71812
Compare
1e71812 to
f0d8808
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
I'm not deep into this matter, but from "far away" this sounds good to me and makes sense. See also the existing issue where @easbar showed a slightly different approach ( I think :) )
Maybe focus on the single via ways for now (especially when the multi-via-way handling is more complicated) and when everything is working (including the snap prevention etc) we revisit this :)
What do you mean here? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Yes, edges with a 0 distance might make problems - see #2636 or #2302. But we already create edges with distance==0 for barriers (see WaySegmentParser.splitSegmentAtSplitNodes), so the code might be (otherwise) relative robust :) |
|
Ok, to summarize: Given the graph with the During graph preperation, we will:
Notes:
Proof of Concept:original.osmmodified.osmRouting on |
af86a9d to
ce9aede
Compare
c94c71a to
aff25b7
Compare
9f14330 to
ac88e8c
Compare
94a648a to
ee2274c
Compare
e777970 to
171f981
Compare
171f981 to
6391edf
Compare
lukasalexanderweber
left a comment
There was a problem hiding this comment.
first tests are successfull for real life turn restrictions. Now some refinements are needed.
| LongArrayList longalist = new LongArrayList(); | ||
| longalist.add(artificialViaNodes.get(r.getVia())); | ||
| longalist.add(r.getVia()); | ||
| ReaderWay artificial_way2 = new ReaderWay(newOsmId2, way.getTags(), longalist); |
There was a problem hiding this comment.
somehow the tags (street names) and navigation instructions are not working correctly
There was a problem hiding this comment.
Maybe because of negative Ids?
There was a problem hiding this comment.
Further analysis shows that the navigation instructions are only manipulated on the edges with distance 0. Maybe we can collect some ideas on how to handle this.
0161cc0 to
96a9384
Compare
if one way being part of the turn restriction don't have exactly two tower nodes, it won't be proccessed. For these restrictions we need to dig deeper into where we put node restrictions.
WaySegmentParser makes most of the OSM reading and got quite complex. To-Dos: - Logging - Correct State Transitions during Parsing
abf78c5 to
5f557f0
Compare
|
Could we simplify/breakup the OSMReader in a different PR? |
|
yeah as things got bigger than expected, I will split this in multiple PRs. |



background: https://discuss.graphhopper.com/t/add-support-for-complex-turn-restrictions/7326
I implemented the reading of via way and multi via way turn restrictions. The next step would be to consider this information in the graph creation. For now, I would just ask you if you are fine with the way those turn restrictions are read?