Is there any way we can query and get location data using mongodb geospatial query that matches the following criteria?
In case anyone else looks at this, as of mongo version 2.4, you can use $geoIntersects to find the intersection of GeoJSON objects, which supports intersections of two polygons, among other types.
{
: {
$geoIntersects: {
$geometry: {
type: "" ,
coordinates: [ ]
}
}
}
}
There is a nice write up on this blog.