mongodb - Mongo geospatial index options -
in mongo geospatial index documentation there parameter called "distancemultiplier", there's no explanation.
anyone know does?
it scales distance returned "dis" in result:
> db.runcommand({geonear: 'places', near: [50, 50]}) { "ns" : "geotest.places", "near" : "1100110000001111110000001111110000001111110000001111", "results" : [ { "dis" : 7.853626559350774, "obj" : { "_id" : objectid("4d4b20890da611546bcbdf96"), "loc" : { "lat" : 42.739037, "long" : 52.992964 }, "category" : [ "1" ] } }, > db.runcommand({geonear: 'places', near: [50, 50], distancemultiplier: 4}) { "ns" : "geotest.places", "near" : "1100110000001111110000001111110000001111110000001111", "results" : [ { "dis" : 31.414506237403096, "obj" : { "_id" : objectid("4d4b20890da611546bcbdf96"), "loc" : { "lat" : 42.739037, "long" : 52.992964 }, "category" : [ "1" ] } },
Comments
Post a Comment