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

generalizedCost is zero for legs nextLegs #6144

Open
miklcct opened this issue Oct 11, 2024 · 1 comment
Open

generalizedCost is zero for legs nextLegs #6144

miklcct opened this issue Oct 11, 2024 · 1 comment

Comments

@miklcct
Copy link
Contributor

miklcct commented Oct 11, 2024

I am trying to replace the legs in an itinerary with a leg from nextLegs and recalculate the generalizedCost for the new itinerary. However, the generalizedCost for the legs in nextLegs are all zero so it is not possible to get an accurate figure for the new itinerary.

Expected behavior

The generalizedCost of the alternative legs are some sensitive numbers, similar to the original.

Observed behavior

the generalizedCost is 0.

Version of OTP used (exact commit hash or JAR name)

2.6.0

Data sets in use (links to GTFS and OSM PBF files)

Bus Open Data Service

Steps to reproduce the problem

Make a journey plan with nextLegs and generalizedCost fetched for the legs.

@optionsome
Copy link
Member

We could discuss this in a dev meeting at some point if you are able to join.

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