Skip to content

Distance calculation for some buses seems to be wrong #4819

@louboecker

Description

@louboecker

Are you sure this is not a data issue?

  • Yes, this is a Traewelling software bug (not a data issue).

Have you checked for existing issues?

  • Yes, I have verified that no existing issue covers this problem.

Affected URL (if any)

https://traewelling.de/status/7993524

Describe the problem

When checking into some bus lines in my local area (e.g. check in above), the distance for these check-ins seem to be way more than it actually is. it seems to also not be consistent on how long the line is. sometimes its around 170 (https://traewelling.de/status/7904978), or 100 (https://traewelling.de/status/7905073) and sometimes its reasonable (https://traewelling.de/status/7899944 / https://traewelling.de/status/7717428), yesterday i had the most distance yet with over 500km in 1 hour (https://traewelling.de/status/7993524).

I've looked into the transitous api if this is an issue with their data, but i'm not familiar enough with php and the träwelling source code to figure out how träwelling calculates distance, so it's hard for me to confirm where exactly the issue is. Feel free to close this issue if this is not a bug in träwelling but in the transitous data.

Steps to reproduce

This is not a consistent issue, but the lines in my attached check-ins seem to at least be affected most of the time.
Check into one of these bus lines from Eisleben to Aschersleben or Aschersleben to Quedlinburg.

Expected behavior

The check-ins should be around 30km in distance instead of over 100km

Environment

No response

Browser console / error messages (optional)

Additional info (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions