Using $near with a 2dsphere index, you set both $maxDistance and $minDistance. In what units are these distances interpreted for a GeoJSON point query?
db.places.find({
location: {
$near: {
$geometry: { type: "Point", coordinates: [-73.9, 40.7] },
$minDistance: 1000,
$maxDistance: 5000
}
}
})