I was testing out the library and copy-pasting the example didn't work because of pathfinder vs pathFinder
I originally expected weight to be returned in the same units as provided, i.e. degrees. It looks the default weightFn is turf.distance, whose default is kilometers, so I thought it would be helpful if the Readme specified the unit of the default weightFn.
A couple very small updates to the README:
pathfinder
vspathFinder
weight
to be returned in the same units as provided, i.e. degrees. It looks the defaultweightFn
isturf.distance
, whose default is kilometers, so I thought it would be helpful if the Readme specified the unit of the defaultweightFn
.