Skip to main content
Extremely Popular
Go to Latest
type alias $geoMultiPolygon
import { type $geoMultiPolygon } from "https://deno.land/x/mongo@v0.31.2/src/types/geospatial.ts";

Example:

{
  $geometry: {
    type: "MultiPolygon",
    coordinates: [
      [ [ [ -73.958, 40.8003 ], [ -73.9498, 40.7968 ], [ -73.9737, 40.7648 ], [ -73.9814, 40.7681 ], [ -73.958, 40.8003 ] ] ],
      [ [ [ -73.958, 40.8003 ], [ -73.9498, 40.7968 ], [ -73.9737, 40.7648 ], [ -73.958, 40.8003 ] ] ]
    ]
  },
}

https://www.mongodb.com/docs/manual/reference/geojson/#multipolygon

definition: GeoJsonOperators<MultiPolygon>