Skip to content

Add path-based overrides#39

Merged
jrialland merged 3 commits intojrialland:masterfrom
smurfix:path
Jan 20, 2025
Merged

Add path-based overrides#39
jrialland merged 3 commits intojrialland:masterfrom
smurfix:path

Conversation

@smurfix
Copy link
Copy Markdown
Contributor

@smurfix smurfix commented Jan 18, 2025

Sometimes neighbor algorithms depend on where you're coming from.

Trains are not able to do 90° turns.

Straight roads or rails make for more speed.

Thus this patch allows overriding neighbor and cost estimates that take the path-so-far into account.

Sometimes neighbor algorithms depend on where you're coming from.

Trains are not able to do 90° turns.

Straight roads or rails make for more speed.

Thus this patch allows overriding neighbor and cost estimates
that take the path-so-far into account.

TODO: add testcases ...
It's more regular and the cache can be used to directly store relevant
information in the destination node which otherwise would have to be
recalculated.
@jrialland jrialland merged commit b92a3ec into jrialland:master Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants