-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 get_current_best_path and improve performances #17
base: master
Are you sure you want to change the base?
Conversation
|
||
newisopoints = sorted(newisopoints, key=(lambda a: a.startWPLos[1])) | ||
|
||
# Remove slow isopoints inside | ||
bearing = {} | ||
for x in newisopoints: | ||
k = str(int(math.degrees(x.startWPLos[1]))) | ||
k = str(int(math.degrees(x.startWPLos[1]) / subdiv)) |
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 guess that this is where the magic happen. I don't understand how you filter the iso points, if not too long can you explain?
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.
Can you also explain how you set concurrency?
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 guess that this is where the magic happen. I don't understand how you filter the iso points, if not too long can you explain?
if you don't filter isopoint, you will get an enormous number of points at every step. This optional subdivision introduces the ability to reduce result resolution, so results that differs for a small amount of degrees are aggregated
Can you also explain how you set concurrency?
as other params routing_obj.algorithm.setParamValue("concurrent", True)
; anyway it's disabled by default since it is apparently slower
Fixes #11