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

Show distance to stop when geolocation is enabled #44

Open
jgibson02 opened this issue Sep 1, 2019 · 0 comments
Open

Show distance to stop when geolocation is enabled #44

jgibson02 opened this issue Sep 1, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jgibson02
Copy link
Member

Description:

When the user has enabled the map's GeolocateControl and it is successfully providing location, whenever details on a stop is displayed the distance to that stop should be shown.

Risks:

Possible performance degradation if distance calculations are done inefficiently

Acceptance Criteria:
  • Distance to stop is shown only when the user's location is successfully being tracked by GeolocateControl
  • Any instances where a list of stops are provided or the user is looking at details for a specific stop the distance to each stop should be shown.
  • For now, the distance should be represented in miles to 1 decimal place.
  • The distance is calculated using the @turf/distance module
@jgibson02 jgibson02 added the enhancement New feature or request label Sep 1, 2019
jgibson02 pushed a commit that referenced this issue Jan 26, 2020
* Initial work

* Enhance stop info display, show distance

* Add key to LoopBadge map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant