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

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

问题描述

GeoFire 与实时数据库紧密耦合,而地理查询是许多希望迁移到 Firestore 的应用的常见功能依赖项.有没有办法在 Firestore 环境中复制位置的散列/检索?

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?

推荐答案

好消息.现在有一个适用于 iOS 和 Android 的库,可以为 Firestore 复制 GeoFire.该库名为 GeoFirestore.它有完整的文档并且经过了很好的测试.我目前在我的应用程序中使用它,并且效果很好.该代码与 GeoFire 的代码非常相似,因此只需几分钟即可学会.

GREAT NEWS. There is now a library for both iOS and Android that replicates GeoFire for Firestore. The library is called GeoFirestore. It has full documentation and is well tested. I currently use it in my app and it works brilliantly. The code is very similar to that of GeoFire so it should only take a few minutes to learn.

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

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