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

What would it take to support tiled routing graphs? #39

Closed
ellenhp opened this issue Jun 4, 2022 · 3 comments
Closed

What would it take to support tiled routing graphs? #39

ellenhp opened this issue Jun 4, 2022 · 3 comments

Comments

@ellenhp
Copy link

ellenhp commented Jun 4, 2022

Hey! I'm the maintainer of Headway, a self-hostable maps stack. I'm thinking about taking the project in a direction that would allow instances to link together in a federated network that could grow to cover the planet. Doing so presents a number of challenges though. From the routing side of things, an end-user can't simply send a routing query including route endpoints to an untrusted server, because of the privacy implications. Nor can it download a routing graph for the entire planet. Valhalla handles this by dividing up the routing graph into tiles. Do you know if an approach like that could work with fast_paths? If so, what would need to change?

Compiling Valhalla to webassembly seems extremely difficult, and I'd like to evaluate building turn-by-turn on top of fast_paths instead. I'm not sure which would end up being more difficult since both of these ideas sound ridiculously complex, but this option involves less CMake at least and I want to explore it a bit.

@ellenhp
Copy link
Author

ellenhp commented Jun 4, 2022

After reading through some of the valhalla source code I've convinced myself I don't want to try and build this from scratch. Still puzzled as to how best to do offline routing for web clients.

@ellenhp
Copy link
Author

ellenhp commented Jun 4, 2022

I actually had a breakthrough with Valhalla and I think I will be able to get it to build, so closing this for now. I think it's probably best that I don't try to build any of these pieces from scratch, because whatever I can throw together by myself will be way worse than what's already out there. :)

@ellenhp ellenhp closed this as completed Jun 4, 2022
@easbar
Copy link
Owner

easbar commented Jun 4, 2022

👍 For a tiled approach I think Valhalla should be a good choice.

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

No branches or pull requests

2 participants