EastCoastGreenwayAlliance / ecg-map

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

findNearest() was giving {} instead of pointoptions #78

Closed gregallensworth closed 7 years ago

gregallensworth commented 7 years ago

This solves some routes that would have become broken when the new server-side routing was implemented. The calls to findNearest() were passing {} as the third param (options) instead of the pointfinderoptions it should have been.

Second, an extraneous pointfinderoptions was being passed as the 5th param, which is no longer used in this new layout. This has been removed.

A route from Baltimore, MD to Richmond, VA now properly selectes the nearest available node instead of insisting on W Grace Ave which cannot be reached directly.