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

add get_current_best_path and improve performances #17

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dakk
Copy link
Owner

@dakk dakk commented Nov 18, 2024

Fixes #11

@dakk dakk changed the title add get_current_best_path add get_current_best_path and improve performances Nov 19, 2024
@dakk dakk linked an issue Nov 19, 2024 that may be closed by this pull request

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))
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Owner Author

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

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.

Router accuracy & performance Path not populated until routing ends
2 participants