> This page location: /docs.md > /docs/development.md > /docs/manual/reference/mql.md > /docs/manual/reference/mql/query-predicates.md > /docs/manual/reference/mql/query-predicates/geospatial.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# $geometry (query predicate operator)

The [`$geometry`](https://www.mongodb.com/docs/manual/reference/operator/query/geometry.md#mongodb-query-op.-geometry) operator specifies a [GeoJSON](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-GeoJSON) geometry for use with the following geospatial query operators: [`$geoWithin`](https://www.mongodb.com/docs/manual/reference/operator/query/geowithin.md#mongodb-query-op.-geoWithin), [`$geoIntersects`](https://www.mongodb.com/docs/manual/reference/operator/query/geointersects.md#mongodb-query-op.-geoIntersects), [`$near`](https://www.mongodb.com/docs/manual/reference/operator/query/near.md#mongodb-query-op.-near), and [`$nearSphere`](https://www.mongodb.com/docs/manual/reference/operator/query/nearsphere.md#mongodb-query-op.-nearSphere). [`$geometry`](https://www.mongodb.com/docs/manual/reference/operator/query/geometry.md#mongodb-query-op.-geometry) uses `EPSG:4326` as the default coordinate reference system (CRS).

To specify GeoJSON objects with the default CRS, use the following prototype for [`$geometry`:](https://www.mongodb.com/docs/manual/reference/operator/query/geometry.md#mongodb-query-op.-geometry)

```javascript
$geometry: {
   type: "<GeoJSON object type>",
   coordinates: [ <coordinates> ]
}
```

To specify a single-ringed GeoJSON [polygon](https://www.mongodb.com/docs/manual/reference/geojson.md#std-label-geojson-polygon) with a custom MongoDB CRS, use the following prototype (available only for [`$geoWithin`](https://www.mongodb.com/docs/manual/reference/operator/query/geowithin.md#mongodb-query-op.-geoWithin) and [`$geoIntersects`](https://www.mongodb.com/docs/manual/reference/operator/query/geointersects.md#mongodb-query-op.-geoIntersects)):

```javascript
$geometry: {
   type: "Polygon",
   coordinates: [ <coordinates> ],
   crs: {
      type: "name",
      properties: { name: "urn:x-mongodb:crs:strictwinding:EPSG:4326" }
   }
}
```

The custom MongoDB coordinate reference system has a strict counter-clockwise winding order.

**Important:**

If specifying latitude and longitude coordinates, list the **longitude** first, and then **latitude**.

- Valid longitude values are between `-180` and `180`, both inclusive.

- Valid latitude values are between `-90` and `90`, both inclusive.
