Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb distancefield to kms

db.runCommand({ "geoNear" : "test", "spherical" : true, "distanceMultiplier" : 0.001, "near" : { "type" : "Point" , "coordinates" : [33.2926487, 44.4159651] } })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #distancefield #kms
ADD COMMENT
Topic
Name
7+3 =