Skip to content

Show distance to stop when geolocation is enabled #44

@jgibson02

Description

@jgibson02
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions