新的“Cloud Firestore”能够查询基于位置的距离吗? [英] Is the new 'Cloud Firestore' able to query based location distance?

查看:283
本文介绍了新的“Cloud Firestore”能够查询基于位置的距离吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 Cloud Firestore 根据地理位置中的纬度和经度来存储位置。然而,我找不到一种方法或一种方法来查询基于到某个点的距离的文件,这是 GeoFire 为Realtime数据库所做的。

有没有办法实现这一点?

解决方案

这是我们正在研究的内容,现在不支持。

I know Cloud Firestore stores locations based on latitude and longitude in Geopoints. However, I can't find a method or a way documented to query documents based on the distance to a certain point, kind of what GeoFire does for the Realtime database.

Is there a way to achieve that?

解决方案

It's something we're looking into, but isn't supported at this time.

这篇关于新的“Cloud Firestore”能够查询基于位置的距离吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆