有没有办法使用GeoFire与Firestore?

编程入门 行业动态 更新时间:2024-10-28 11:20:35
本文介绍了有没有办法使用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?

本文发布于:2023-10-31 01:24:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544580.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:没有办法   GeoFire   Firestore

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!