MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

MongoDB Geospatial project matching multipoints only

Source: https://stackoverflow.com/questions/60782330/mongodb-geospatial-project-matching-multipoints-only
Source 2: https://jira.mongodb.org/projects/SERVER/issues/SERVER-47035

Via MongoDB $geoNear command with Aggregate, I’m unable to project locations that are strictly within the queried maxDistance field.

The documentation states to use includeLocs " specifies the output field that identifies the location used to calculate the distance. This option is useful when a location field contains multiple locations .", however the includeLocs field is including all multipoint locations.

Does mongodb have the ability to project only the matching multipoints and not the whole set stored? Running a a fixed lon/lat comparison between two points isn’t yielding the same results when the data is based on spherical points.