Skip to content
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

Matrix flexible mode location count restriction #102

Merged
merged 3 commits into from Feb 8, 2018

Conversation

HendrikLeuschner
Copy link
Contributor

Restricts the matrix requests locations to a diffferent (lower) value if not using profile driving-car or hgv (i.e. if there is no CH profile for the requested profile).
The additional parameter still needs to be added to the app.config in
ors -> services -> matrix
after the entry maximum_locations and is called maximum_locations_flexible: 25 @TimMcCauley please 😄
Fallback to value of 25 if the parameter is not set is hardcoded.
Resolves #94

Copy link
Contributor

@rabidllama rabidllama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just needs the maximum_locations_flexible property adding to the app.config.sample file along with a comment about what it is for so that people creating future instances know that it is available.

Also, please add a little about it to the CHANGELOG.md under the [Unreleased] heading.

@@ -39,6 +40,9 @@
value = AppConfig.Global().getServiceParameter("matrix", "maximum_locations");
if (value != null)
maximumLocations = Math.max(1, Integer.parseInt(value));
value = AppConfig.Global().getServiceParameter("matrix", "maximum_locations_flexible");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added the parameter to the staging app.config, but it would be good to have it added to the app.config.sample file within the repository so that it is there ready for new instances

@rabidllama rabidllama removed the request for review from TimMcCauley February 8, 2018 13:44
@rabidllama rabidllama merged commit a467f8b into development Feb 8, 2018
@rabidllama rabidllama deleted the dijkstra_loc_restr branch February 9, 2018 09:33
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.

None yet

2 participants