GEOMETRYAREA

Takes one or more features and returns their area in square meters.

Parameters

geojson GeoJSON (required) - input GeoJSON feature(s)

Returns

number - Point distance units along the line

Examples

const polygon = {
  type: "Polygon",
  coordinates: [
    [
      [-82.47576689405734, 27.977757676187323],
      [-82.47699950483403, 27.974250052144896],
      [-82.47508211029273, 27.973524322585376],
      [-82.47357558600966, 27.97509673046042],
      [-82.47576689405734, 27.977757676187323]
    ]
  ]
};

INSPECT(GEOMETRYAREA(polygon))

// returns
// 82487.30619407611