-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ready] Emit Merge for Motorways only #2657
Conversation
43fa8dd
to
54f6c1a
Compare
} | ||
else | ||
{ | ||
const double constexpr MAX_COLLAPSE_DSTANCE = 30; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I
missing in DSTANCE
54f6c1a
to
c511d5e
Compare
@@ -62,6 +63,16 @@ inline void print( const extractor::guidance::Intersection & intersection ) | |||
std::cout << std::flush; | |||
} | |||
|
|||
inline void print( const NodeBasedDynamicGraph &node_based_graph, const extractor::guidance::Intersection & intersection ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format
c511d5e
to
66e5af3
Compare
Resolved the two nitpicks I had with this. |
// since `distance` does not refer to an actual distance but rather to the | ||
// duration/weight of the traversal. We can only approximate the distance here | ||
// or actually follow the full road. When 2399 lands, we can exchange here for a | ||
// precalculated distance value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how 2399 helps here. On the contrary the distance here seems more correct?
a3c2880
to
c471849
Compare
The merge paradigm in its current implementation seems confusing.
In cases where we take a very slight turn onto a through street, the instruction is technically a merge onto a street.
However, the merge paradigm of merging to the left on a slight right turn seems to confuse more than it helps.
This PR changes the paradigm of merge to only consider motorway-like ramps for merging and emitting an instruction to
go straight
onto these merging situations.It is based on #2586