0

对于查询db.singapore_google_geo.aggregate([{“$unwind”:”$features”},
{“$match”:{“features.geometry”:{ $geoIntersects: { $geometry: { type: “MultiPoint”, coordinates: [[ 103.8532, 1.2821527777777777 ], [ 103.864326436447, 1.30971120650773 ]] } } }}},
{“$project”:{“features.properties.name”:1,_id:0}}])
返回的数据我希望根据动态的入参Point的维度进行返回,例如
103.8532, 1.2821527777777777对应的name1;
103.864326436447, 1.30971120650773对应的name2
需要怎么写查询语句呢