Posts by Elton Barcelos • 1 point
2 posts
-
0
votes1
answer63
viewsA: Mongodb - Error running find geospatial $near
Solved: the error was in the syntax. db.tblfrota.find( { Loc.coordinates: { $near : { $Geometry : { type : "Point", coordinates: [ parseFloat(-41.81064615) , parseFloat(-22.39813884) ] },…
mongodbanswered Elton Barcelos 1 -
0
votes1
answer63
viewsQ: Mongodb - Error running find geospatial $near
I have a collection with the following documents. { "_id" : ObjectId("5c6bb6b492647b15f80038a1"), "loc" : { "type" : "Point", "coordenadas" : [ -41.104658, -20.963387 ] } } I’m running the find:…
mongodbasked Elton Barcelos 1