Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.getCollection('houses').find({
- 'coordinates_geojson.coordinates.1': {
- '$lte': 20.49584842128357,
- '$gte': 20.458539491985142
- },
- 'coordinates_geojson.coordinates.0': {
- '$lte': -103.4088134765625,
- '$gte': -103.47747802734375
- }
- })
- db.getCollection('houses').find({
- "coordinates_geojson": {
- "$geoWithin": {
- "$geometry": {
- "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -103.47747802734375,
- 20.458539491985142
- ],
- [
- -103.4088134765625,
- 20.458539491985142
- ],
- [
- -103.4088134765625,
- 20.49584842128357
- ],
- [
- -103.47747802734375,
- 20.49584842128357
- ],
- [
- -103.47747802734375,
- 20.458539491985142
- ]
- ]
- ]
- ]
- }
- }
- }
- })
Add Comment
Please, Sign In to add comment