db.units.aggregate([ { "$geoNear": { "near": { "type": "Point", "coordinates": [ -3.70256, 40.4165 ] }, "dista ...
db.units.aggregate([ { "$geoNear": { "near": { "type": "Point", "coordinates": [ -3.70256, 40.4165 ] }, "dista ...
I have a database with two collections like so: [ { "name": "Person A", "location": {"type": "Point", "coordinates": [180, 90]} }, { ...
I am storing positions into a collection, and based on a bounding box, I would like to retrieve the positions that are within this bounding box. For s ...
I am trying to insert a polygon into a MongoDB DBMS. The polygon is self intersecting in one point. The polygon is the following: The error I get i ...
I am trying to query some restaurants ordered by their distance to a certain location (user's location). I have a "restaurants" collection with docume ...
Database MongoDB on Azure with Cosmos DB (so the Mongo version will be 3.6) Scenario: I wish to show to the user in a mobile app, the items are linke ...
I have a data set with geo points. { _id ...other fields... location: { type: "Point", coordinates: [0,0]}} What I have been attempting to do i ...
I've been working on creating geo fences and alerting systems using Node.JS, mongoDB and mongoose framwork. I've a vehicle with a sensor, which keep ...
The $nearSphere MongoDB operator is able to return the documents near to a given point (specified as parameter of the operator) sorted by incresing di ...
I have a large geojson feature collection which is over 16MB. I am hoping to insert the data into MongoDB so that I can utilize the geospatial functio ...
Please refer to this issue Here I have same issue except i am not providing any geo data. My Model's geo data implementation portion below Same R ...
Via MongoDB $geoNear command with Aggregate, I'm unable to generate locations that are within the queried maxDistance field. The documentation stat ...
Case I have store the location coordinates in MongoDB collection with 2dsphere index. I want to get the records which included into the specific boun ...
I'm trying to match points in one collection with regions stored in another collection. Here are examples of documents. Points: Regions: And th ...
I am not sure if there is a way to do this. I need to have a circle in mongodb and run a query against that with a box using $box to see if these two ...
I am building a MongoDB database of property data in the Netherlands. I want to be able to perform geospatial queries on my dataset. Each document doe ...
Collection Schema Indexes There is 2 milion documents is stored in collection. First I ran query like this. db.places.find({ location: {$geoWi ...
I am trying to use mongoose geospatial queries on the mongodb collection. "2dsphere" index is already applied on the location object. Query Please ...
I'm trying to extract all the elements inside a polygon (regular or irregular) but mongoDB geospatial doesn't works. When I do the query like this, ...
Consider a query of: Would it be reasonable to expect a performance boost if the coordinates were less precise? If so, by how much? Bonus point ...