Skip to content

Feature: Enhance Progress Bar to Calculate Distance based on Shape #45

Open
@stephenyeargin

Description

@stephenyeargin

Currently, the progress bar is looking for the most-recently passed stop sequence by comparing the current time to the scheduled or updated time. The result is for a fairly accurate meter for stops that are evenly spaced, but less-so for those that are farther apart (e.g. the regional bus routes).

We have the data to make this more accurate based on vehicle position. The vehicle position can be used to search for the closest Shape point of the list of points, which has a corresponding dist_traveled attribute.

The hazard of using this is if the vehicle is on a detour, or the route has a switchback because the closest point may not be the actual progress along the route. In these cases, a distance-from-point tolerance could be defined. If it falls outside the tolerance, it would fall back to using the stop time based calculation of percentage complete.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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