-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add a commande line option to osrm-routed for max locations supported in distance table query #1298
Add a commande line option to osrm-routed for max locations supported in distance table query #1298
Conversation
Thanks for filing the PR. I don't like adding another parameter to the c'tor. It's better to pass a configuration object (as the sole parameter) to the c'tor that contains the other information. |
Can you initialize this configuration objet, please ? |
Can you at least tell me what you want more explicitly ? |
What do you mean by that? How the struct should look like?
|
any updates @frodrigo ? |
d2b1376
to
f053cd4
Compare
The struct usage is as you want ? |
Yes, almost like suggested. |
@frodrigo Added some comments to the commits. Once this is fixed this should be good to merge. :-) |
f053cd4
to
ac6a94d
Compare
I did what you asked |
ac6a94d
to
17bfa39
Compare
Fix again with stash |
Looks good! Once the build + tests pass I will merge this. Thanks again @frodrigo! |
@@ -0,0 +1,51 @@ | |||
/* | |||
|
|||
Copyright (c) 2014, Project OSRM, Dennis Luxen, others |
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.
2015
Added some comments to the code. @TheMarex hold with merging until the next release is tagged this week. The patch breaks the API that the node bindings use. |
@DennisOSRM exactly, I need this option for node-osrm. So it would be best if we merge this pre-tag, right? |
@TheMarex can it wait for a day or two? |
@@ -272,6 +276,11 @@ inline unsigned GenerateServerProgramOptions(const int argc, | |||
{ | |||
return INIT_OK_START_ENGINE; | |||
} | |||
if (1 > max_locations_distance_table) | |||
{ | |||
throw OSRMException("Max location for distance table must be a positive number"); |
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.
try using osrm::exception
.
17bfa39
to
12f2acc
Compare
It's all right now ? |
nope, the CI fail. As mentioned above, replace |
I use osrm::exception in last commit |
triggered a rebuild of the PR |
something is fishy with this PR. Did you rebase onto latest develop branch? |
No idea what happened to this PR. Went ahead, merged manually into a new branch + PR: #1335 Will handle it from there and merge once the CIs come back positive. |
Due to issue (with gcc or luabind depends on computer) to compile develop branch this patch is not tested on this branch. Nevertheless this patch work on last release. #1236