EastCoastGreenwayAlliance / ecg-map

Interactive map and trip planner for the ECGA
https://map.greenway.org
7 stars 0 forks source link

Route medatata: Distance from indicated latlngs, total distance #17

Closed gregallensworth closed 7 years ago

gregallensworth commented 7 years ago

Relevant to #13 one of the UI items depicted, is that when one finds the nearest segment to the starting and ending latlngs, they will also want to know how far away they are from the trail/route.

As long as we're at it, other obvious metadata to add...

gregallensworth commented 7 years ago

The structure now includes metadata (a properties on the document itself) of the actual and desired starting and ending points, the distance from the requested points and trail points, and the total mileage. This is documented in the code, and the demo shows their usage in Leaflet.