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

Match service: Leg ending and beginning is overlapping #6722

Open
pstidsen opened this issue Oct 23, 2023 · 0 comments
Open

Match service: Leg ending and beginning is overlapping #6722

pstidsen opened this issue Oct 23, 2023 · 0 comments
Labels

Comments

@pstidsen
Copy link

Hi there,

We are struggling with interpreting the legs in the output from OSRM. Our goal is generally to draw a line with timestamps for each node. To draw the line, matchings[i].geometry.coordinates should be enough. However in order to enrich the coordinates with timestamps we need to use the legs.

I looks like that in a leg with n nodes, there is n-1 distances and durations. I guess duration[0] is the duration between nodes[0] and nodes[1]. However, we have noticed an overlap between the ending of one leg and the beginning of the next one. It appears as though the last two nodes in a leg also appears in the beginning of the next leg. Why is the output like that and how should the distance and duration be calculated in the overlap?

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

No branches or pull requests

1 participant