Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Feature#480 maximum speed #740
Feature#480 maximum speed #740
Changes from 37 commits
1b035b2
c57f0b9
84d6857
97586f8
0ed73c5
9a9460f
7750fde
8d5b356
e8661fc
0890622
9919410
2a242e3
d97e261
1b1afbb
276b4f3
2187468
b7d4608
7d45c4f
398b467
bbba0a0
483caac
f6e8596
1a1635b
4f57113
683992b
1e58369
50a8ca3
d24f98d
bb6fb48
eecd1e0
fbf1e2e
0f198da
4308af5
5d55972
2923f36
803ebfe
e996df7
f1e9dbb
977c6a3
f25fdac
11f2865
4d005e8
10a2b7e
efc0fbc
b97490c
1406052
b96a110
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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.
The handling of
maximum_speed_lower_bound
value from the config file still needs some refactoring. Currently there are 3 different places over the code where this value is parsed and if missing the hard-coded value of 80 is used. The default value, even if hard-coded, should appear only once in the whole codebase.I suggest to use
RouteProfileConfiguration
class to store the value ofmaximumSpeedLowerBound
. Have a look at the implementation of themaximum_distance
parameter, it will be probably quite similar.This change might require, for example, that
maxSpeed
value is resolved upstream inORSGraphHopper
fromCmdArgs
set inRoutingProfile
, and passed toMaximumSpeedCoreEdgeFilter
as a constructor argument.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.
Update: please use
GraphProcessContext
rather thanCmdArgs
for passing themaximum_speed_lower_bound
.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.
The introduction of
maximumSpeedLowerBound
has mademaxSpeed
redundant, so please remove the latter.