-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:Nodejs, Mongoose, MongoDB Atlas
-
Empty show more show less
I have a linestring in document, i am querying $geoIntersects against it with two polygons (point buffered using turfjs). Then it throws error "Point must only contain numeric elements". Did I make any mistake? Below is the code.
Transport.find({
"route.geocodes": {
$geoIntersects: { $geometry: req.body.routes[0].origin.geocode_buffered.coordinates },
$geoIntersects: { $geometry: req.body.routes[0].destination.geocode_buffered.coordinates }
}
},
{ title: 1 }).