3

Suppose the point has coordinates for a search within the box: (long:-155, lat:19)

If we have the box: SW - (-170, 10), NE (29,69) that everything is fine and we can find this point because it's inside this box.

But if we move the box a little bit the coordinates are SW - (144, 10), NE (-75,69) that results are zero although the point is still inside of this box.

How to do it properly to find the point in the second situation?

enter image description here

1 Answer 1

0

You need to do a geoIntersect , not geoWithin

if you are using java to work with mongodb: view the answer: mongo geoIntersects with Spring Data

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.