Questions tagged [geonear]

33 questions
0
votes
1 answer

How to use $geoNear using mongodb feathersjs without mongoose

I am trying featherjs for the first time. And stuck on how to use $geoNear to fliter by geo location. I am not using mongoose, only feathers-mongodb
Rehan CG
  • 45
  • 5
0
votes
0 answers

MongoDB : using aggregate with $geoNear don't return all the results - Node.js

When using geoNear, aggregate does not return all the results it should return. I have double checked and there are some results that are in the range and corresponding to the query but are not returned. Only 18 are returned where I should get 30…
Louis
  • 418
  • 6
  • 22
0
votes
1 answer

Calculate distance from Polygon to Point in MongoDB

I can calculate distances in MongoDB from Point to Point, using 2dsphere index. However, now I need the calculate the distance from a given point to a Polygon. I'm using the following code : Document commandNoIntersect = new Document("geoNear",…
Undroider
  • 21
  • 5
1 2
3