nearestPointsToGeometry method
Compute the nearest locations on the target geometry and the given geometry.
@param g the geometry to compute the nearest point to @return the nearest points
Implementation
List<Coordinate?>? nearestPointsToGeometry(Geometry g) {
List<GeometryLocation?>? minDistanceLocation = nearestLocations(g);
List<Coordinate>? nearestPts = toPoints(minDistanceLocation);
return nearestPts;
}