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

Make association of path details to legs easier #31

Open
karussell opened this issue Jan 3, 2018 · 3 comments
Open

Make association of path details to legs easier #31

karussell opened this issue Jan 3, 2018 · 3 comments

Comments

@karussell
Copy link
Member

If someone wants to know all surface or street name information per "leg" (one leg is between via points) the current process is a bit ugly, see this tutorial.

@boldtrn
Copy link
Member

boldtrn commented Jan 4, 2018

Good idea. We could introduce a "via point" marker that could be placed between the PathDetails, so that they are separated at this point, like:

["Street A", 0, 10], ["Via Point 1", 10, 10], ["Street A", 10, 20].

Another option would be to add a "leg" PathDetail, that would result in another PathDetail like:

["Leg 1", 0, 10], ["Leg 2", 10, 20]

@karussell
Copy link
Member Author

I meant a purely JS solution without changing the JSON and e.g. create something that helps with separating into legs or is already separated and real JS objects.

@karussell
Copy link
Member Author

For now I documented only the current state without any changes in the API: https://www.graphhopper.com/blog/2019/11/28/routing-api-using-path-details/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants