@turf/point-to-line-distance
Calculates the distance between a given point and the nearest point on a line.
npm install @turf/point-to-line-distance Calculates the distance between a given point and the nearest point on a line.
npm install @turf/point-to-line-distance