Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

i am using nodejs express and mangodb, when a user signup i want to get the live location of the use geospatial code . this is the error i get when i run my code . MongoServerError: Can't extract geo ...
Quobi slim's user avatar
1 vote
0 answers
127 views

I have been trying to compare the Geospatial query function of two well-known database engine, Mongod and Postgis to see which one would suit my work the most. I prepared mock data for my database, ...
slothPete's user avatar
0 votes
1 answer
116 views

Following are the fields with some sample data of my collection for geolocation of all the users on every 30 seconds. Data Collection Documents [{ "_id": id1, "purpose": "...
Durvesh Parmar's user avatar
2 votes
0 answers
112 views

I noticed when trying to insert an complex data type into a mongodb using Go without having MarshalBSON implemented, it falls back to MarshalJSON and inserts the struct correctly as a document in ...
JC97's user avatar
  • 1,630
1 vote
0 answers
81 views

I started learning mongodb and was trying to figure out which way is better suited for a large 2d tile map if I need to store a large number of tiles. In my case, the player has to fill in the free 4 ...
shreder's user avatar
  • 11
1 vote
1 answer
77 views

db.units.aggregate([ { "$geoNear": { "near": { "type": "Point", "coordinates": [ -3.70256, 40.4165 ] }, "...
Ignasi's user avatar
  • 6,235
1 vote
0 answers
203 views

I have CosmosDB MongoDB-API instance. Mongo server version = 4.0.0 Inserted documents look like: { "_id": "111", "fileName": "some.txt", "...
Dmitry D's user avatar
1 vote
1 answer
797 views

I have a database with two collections like so: [ { "name": "Person A", "location": {"type": "Point", "coordinates": [180, 90]} }...
Mochi's user avatar
  • 47
1 vote
1 answer
351 views

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 small bounding boxes, everything seems to work fine,...
Kevin D's user avatar
  • 485
1 vote
1 answer
813 views

i'm experimenting with mongodb and geospatial queries. I made the following collection: shape> db.shape.find() [ { _id: ObjectId("61ab50d2056b5357b5e23e56"), name: 'Point1', ...
rekotc's user avatar
  • 555
1 vote
1 answer
752 views

I am trying to insert a polygon into a MongoDB DBMS. The polygon is self intersecting in one point. The polygon is the following: { "type": "FeatureCollection", "crs": { &...
Vitaly Olegovitch's user avatar
1 vote
1 answer
212 views

I'm trying to find nearest other locations form my MongoDB database. I'm using .net Core as rest API. .net Core 5.0 This is my MDB Class public class MdbTrip { [BsonId] [...
gamal's user avatar
  • 1,665
3 votes
0 answers
393 views

I have a collection that looks like this: Mongodb Collection Data: /* 1 */ { "_id" : "X1255", "member" : { "id" : "X1255", &...
Divya.R's user avatar
  • 31
0 votes
1 answer
340 views

I am trying to query some restaurants ordered by their distance to a certain location (user's location). I have a "restaurants" collection with documents like this: { ... "...
SeriousMonk's user avatar
0 votes
0 answers
426 views

Background Information I am using Node JS with MongoDB as database to build an API for a mobile application which collects geospatial data. The data consists of latitude and longitude information ...
Abhishek Krishnan's user avatar
0 votes
0 answers
159 views

Simple Query: PFQuery *query=[PFQuery queryWithClassName:@"Adventures"]; [query whereKey:@"location" nearGeoPoint:self.userLocation withinMiles:100]; [query ...
Peter's user avatar
  • 1,081
-1 votes
1 answer
223 views

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 linked to a supplier which have coordinates deep in the ...
Ahmad Hajou's user avatar
  • 1,319
-1 votes
1 answer
2k views

I have a data set with geo points. { _id ...other fields... location: { type: "Point", coordinates: [0,0]}} What I have been attempting to do is filter out and delete any documents that ...
firefly's user avatar
  • 11
2 votes
1 answer
2k views

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 on sending the coordinates it travelling through. ...
Aravind's user avatar
  • 424
0 votes
1 answer
531 views

The $nearSphere MongoDB operator is able to return the documents near to a given point (specified as parameter of the operator) sorted by incresing distance. However, how to get the actual distance? ...
fgalan's user avatar
  • 12.4k
0 votes
0 answers
337 views

When I make a query to my MongoDB database using mongoose and the mongoDB $near geospatial operator (also tried $nearSphere) my code returns a 200 HTTP status with the correct list of documents but ...
eliotmkb's user avatar
0 votes
1 answer
134 views

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 functionality that MongoDB offers ($geoIntersects, $...
sfraser's user avatar
0 votes
1 answer
266 views

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 startLocation: { // GeoJSON type: { ...
Kebrum Otis's user avatar
0 votes
1 answer
318 views

Via MongoDB $geoNear command with Aggregate, I'm unable to generate locations that are within the queried maxDistance field. array( '$geoNear' => array( ...
Michael Mikhjian's user avatar
1 vote
1 answer
469 views

Case I have store the location coordinates in MongoDB collection with 2dsphere index. I want to get the records which included into the specific bounds on map. I have one coordinate point which is ...
Jaydipsinh Vaghela's user avatar
0 votes
1 answer
558 views

I'm trying to match points in one collection with regions stored in another collection. Here are examples of documents. Points: { "_id" : ObjectId("5e36d904618c0ea59f1eb04f"), ...
Ralfeus's user avatar
  • 825
0 votes
1 answer
461 views

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 shapes overlap or not. However, Geojson does not ...
BlackLog's user avatar
  • 331
1 vote
1 answer
701 views

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 does not have longitude and latitude coordinates, but ...
Harm van den Brand's user avatar
1 vote
0 answers
134 views

I have a scenario where I have to join my restaurants and zips collection based on their location. Restaurants [{ "_id" : ObjectId("55cba2486c522cafdb059deb"), "location" : { "...
Ghazanfar Khan's user avatar
0 votes
1 answer
234 views

Collection Schema { "_id" : ObjectId("5d3562bf1b48d90ea4b06a74"), "name" : "19", "location" : { "type" : "Point", "coordinates" : [ 50.0480208, 30....
Hide's user avatar
  • 3,367
1 vote
1 answer
562 views

I made a filter to do a Geospatial query on data from my Mongodb database and this filter works fine until I do an "And" operation on this filter with another Geospatial filter, but pointing to a ...
John Code's user avatar
  • 685
0 votes
0 answers
224 views

I am trying to use LineString in $geoNear in a aggregation query, but unable to use it. I want any other alternative to use a LineString to compare list of co-ordinates. this is my function: ...
Rushi Mahindrakar's user avatar
2 votes
0 answers
339 views

I am trying to build custom geospatial indexes using MongoDB's B-tree indexes, as I find Mongo's native implementation limiting for my own case. In order to fulfill my geospatial queries which will ...
Anıl Şimşek's user avatar
1 vote
0 answers
504 views

I am trying to find the documents which are near to a point without using aggregation.I want use NearQuery or Query class or any other. I tried with following queries but getting exception 1) ...
nithin's user avatar
  • 401
0 votes
1 answer
125 views

I am trying to use mongoose geospatial queries on the mongodb collection. "2dsphere" index is already applied on the location object. Query Please find the query below: const data = await Banks....
Ashy Ashcsi's user avatar
  • 1,599
0 votes
0 answers
357 views

I am attempting to store and query locations based on coordinate points with Mongoose 5.3.8 in order to return points within the radius of another point. I have read the docs and have implemented the ...
Bdyce's user avatar
  • 332
5 votes
0 answers
2k views

I can't seem to get a bounding box query working with MongoDB, that actually uses the spatial index. Here's my indexes: [ { "v" : 2, "key" : { "_id" : 1 }, ...
RPM1984's user avatar
  • 73.3k
1 vote
1 answer
416 views

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, works perfectly db.getCollection('houses')....
kirbylife's user avatar
  • 115
1 vote
1 answer
169 views

Consider a query of: db.stuff.find({ Location: { $geoWithin: { $centerSphere: [ [ -73.93414657, 40.82302903 ], 5 / 3963.2 ] } } }) Would it be reasonable to expect a performance boost if the ...
Wjdavis5's user avatar
  • 4,201