有没有办法使用GeoFire与Firestore? [英] Is there a way to use GeoFire with Firestore?

查看:428
本文介绍了有没有办法使用GeoFire与Firestore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GeoFire与实时数据库紧密耦合,而地理查询是许多想要迁移到Firestore的应用程序的常见功能依赖。有什么方法可以在Firestore环境中复制位置的散列/检索吗?

解决方案

来自Cloud Firestore团队的Sam在这里。正如SUPERCILEX所说,Cloud Firestore已经支持GeoPoint数据类型。我们正在努力将本地地理查询带到产品中。



由于原生地理查询即将到来,因此我们不会将GeoFire移植到Cloud Firestore。相反,我们将重定向工程,以尽快获得本地查询。



如果您今天需要geo查询并且不想构建自己的库,请使用Realtime Database !


GeoFire is tightly coupled to the Realtime Database, while geo-queries are a common functional dependency of many apps that are looking to migrate to Firestore. Is there any way to replicate the hashing/retrieval of locations in the Firestore environment?

解决方案

Sam from the Cloud Firestore team here. As SUPERCILEX said, Cloud Firestore has support for the GeoPoint data type already. We are working hard to bring native geo queries to the product.

Because native geo queries are coming, we will not be porting GeoFire to Cloud Firestore. Instead we will redirect that engineering effort to getting the native queries sooner.

If you need geo queries today and don't want to build your own library, stick with Realtime Database!

这篇关于有没有办法使用GeoFire与Firestore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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