Skip to content

TypeScript code snippet – How to find geopoints radius in mongoose?

    loc: {
        $near: {
            $geometry: {
                type: "Point",
                coordinates: coords
            $maxDistance: maxDistance
}).then((err, locations) => {
    // do what you want here
See also  Python code snippet - How to find the mode using pandas groupby?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.