Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to find geopoints radius in mongoose

var locQuery = (coords, distance) => {
    return { loc: { $near: { $geometry: { type: "Point", coordinates: coords }, $maxDistance: parseInt(distance)}}}
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #geopoints #radius #mongoose
ADD COMMENT
Topic
Name
4+2 =