code: @NonNull
    public static Point nearestPoint(@NonNull Point targetPoint, @NonNull List<Point> points) {
      if (points.isEmpty()) {
        return targetPoint;
      }
      Point nearestPoint = points.get(0);
      double minDist = Double.POSITIVE_INFINITY;
      for (Point point : points) {
        double distanceToPoint = TurfMeasurement.distance(targetPoint, point);
        if (distanceToPoint < minDist) {
          nearestPoint = point;
          minDist = distanceToPoint;
        }
      }
      return nearestPoint;
    }
docs: Takes a reference point and a list of {@link Point} geometries and returns the point from the
  set point list closest to the reference. This calculation is geodesic.
  
  @param targetPoint the reference point
  @param points      set list of points to run against the input point
  @return the closest point in the set to the reference point
  @since 3.0.0