code: public Coordinate lngLatToMeters(double lng, double lat) {
          double mx = lng * originShift / 180.0;
          double my = Math.log(Math.tan((90 + lat) * Math.PI / 360.0)) / (Math.PI / 180.0);
  
          my *= originShift / 180.0;
  
          return new Coordinate(mx, my);
      }
docs: Converts given coordinate in WGS84 Datum to XY in Spherical Mercator
  EPSG:3857
  
  @param lng the longitude of the coordinate
  @param lat the latitude of the coordinate
  @return The coordinate transformed to EPSG:3857