code: public static Point midpoint(@NonNull Point from, @NonNull Point to) {
      double dist = distance(from, to, TurfConstants.UNIT_MILES);
      double heading = bearing(from, to);
      return destination(from, dist / 2, heading, TurfConstants.UNIT_MILES);
    }
docs: Takes two {@link Point}s and returns a point midway between them. The midpoint is calculated
  geodesically, meaning the curvature of the earth is taken into account.
  
  @param from first point used for calculating the midpoint
  @param to   second point used for calculating the midpoint
  @return a {@link Point} midway between point1 and point2
  @see <a href="http://turfjs.org/docs/#midpoint">Turf Midpoint documentation</a>
  @since 1.3.0