Skip to content

Improve delay accuracy - use scheduled times #16

@EddyIonescu

Description

@EddyIonescu

The delay accuracy does get pretty noticeable for longer delays (like say 20-min), namely since the avg speed of buses is usually closer to 20km/h. Use the scheduled times to get calculatedDelay.

  • Adding a timeAlongRoute field to StopTimesWithLocation
  • Generate it from departure_time (converted to be the number of seconds of the day)
  • Then - get calculatedDelay from the difference in the timeAlongRoute - which will be based off the schedule; interpolate it between the two stops linearly based on the distance travelled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions