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

Intermediate nodes on a route break the Data table's Time and Energy values #680

Open
boulderalf opened this issue Mar 10, 2024 · 1 comment
Labels

Comments

@boulderalf
Copy link

I have noticed that adding intermediate nodes on a route breaks the Data table's Time and Energy values.

Here is an example:

Working as expected

  1. Create a route on a long road with only a start and end point (click here for route)
  2. You will see that the Time and Energy values accumulate over the route. The accumulated Time value is 2748 seconds (0:45 h) and the accumulated Energy value is 274828 J (0.08 kWh). That is as expected.
    values increase over route

Not working as expected

  1. Add a few intermediate nodes on the route. (click here for route)
  2. Now, the Time and Energy values do not accumulate over the route. The values seem to reset at each intermediate node. No longer can I rely on the Time and Energy values to be an accumulation along the route.
    values reset at intermediate nodes

Is this a bug? Or am I misreading the data?

@quaelnix
Copy link
Collaborator

This is a known error that consists of two problems:

  1. BRouter-Web makes a separate request to BRouter for each leg of the route (which explains why time and energy do not increase monotonically).
  2. Even if BRouter-Web did not do it like this, BRouter would not be able to calculate the time and energy correctly because adding waypoints resets the internal elevation filter, which messes up the time and energy calculation.

@quaelnix quaelnix added the bug label Mar 31, 2024
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

2 participants