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

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

Open
stephenyeargin opened this issue Jul 24, 2022 · 0 comments
Open

Comments

@stephenyeargin
Copy link
Member

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.

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

1 participant