I read the documentation for MongoDB here , and I found this really interesting. However, there was one feature that seemed to be very large, but was not clearly documented. This is the concept of geo-fencing. If I create a radius (or rectangle), how can I execute the request so that I can specify a point, and Mongo can tell me if this point is inside certain areas, instead of asking for neighboring areas and execute the Ray-Casting algorithm (or any other algorithm) to determine if my provided point is in these areas.
Any help in the right direction, or, even better, some examples of how to do this with MongoDB, is greatly appreciated. Thanks!
Refresh
Just to let everyone know what I did. I have finished my own solution built on top of Mongo (to use its existing geospatial index / query capabilities) and it works well enough for a prototype. As a solution for use in production, he can definitely use some improvements. But I wrote a series of blogs about how I approached the problem with an example server in Ruby. You can find the first part of your blog on my website here .
mongodb geolocation geospatial
user131441
source share