code: function getGridOffset(boundingBox, cellSize) {
    const {yMin, yMax} = boundingBox;
    const latMin = yMin;
    const latMax = yMax;
    const centerLat = (latMin + latMax) / 2;
  
    return calculateGridLatLonOffset(cellSize, centerLat);
  }
docs: /* eslint-enable max-statements 
  Based on geometric center of sample points, calculate cellSize in lng/lat (degree) space
  @param {object} gridData - contains bounding box of data
  @param {number} cellSize - grid cell size in meters
  @returns {yOffset, xOffset} - cellSize size lng/lat (degree) space.