Open mottetts opened 5 years ago
In addition to the above, we would like to show the walking time to the destination. As a possible option to calculate this, we could use this API: https://developers.arcgis.com/javascript/3/jssamples/analysis_connectoriginstodestinations.html
This could be presented similar to GoPhillyGo, where an icon is used to indicate the type of directions presented and the walking distance/time are separated by a small element: https://gophillygo.org/?origin=39.952545%2C-75.1625599&originText=City%20Hall%2C%20Philadelphia%2C%20Pennsylvania%2C%2019107&mode=BICYCLE&maxWalk=482802&wheelchair=false&bikeOptimize=GREENWAYS&arriveBy=false&dateTime=&destination=39.958162%2C-75.1783254&destinationText=Race%20Street%20Crossing%20(SRT)&tourMode=false
As a user I want to see a measurement of distance (in feet/miles or meters/km) to a nearby tap so that I can determine how close I am to it.
Given the user's location is known and showing on the map, when selecting "Click me to view the closest tap" or when selecting a phlask icon on the map, the distance should be displayed in parentheses next to or immediately below the street address.
The distance can be displayed in feet if it is less than 2000 feet, otherwise it should display in miles or fractions of a mile (e.g., "500 feet", "0.6 miles"). Alternately, if the user wants metric enabled, the distance should be displayed in meters if it is less than 1 km, otherwise it should display in kilometers or fractions of a kilometer.