聚合操作时,使用geoNear后获取的distanceField单位是什么呢?如何换算为"公里"呢?
发布于 6 年前 作者 wfeng 4434 次浏览 来自 问答

以官方文档提供的示例代码为例:https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.geoNear.html#%E7%A4%BA%E4%BE%8B

红框中获得的这个distance单位是什么呢?如何换算为"公里"呢?
1 回复

https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoNear.html

建议后续提问前先搜索,或者提问后关注下帖子右侧相关问题推荐。

回到顶部