Firebase是否进行地理空间处理? [英] Does Firebase do Geospatial?
问题描述
我想将Firebase改造为现有的应用程序.现有应用程序使用CouchDB和GeoCouch来确保客户端仅检索用户附近"的数据.
I would like to retrofit Firebase to an existing app. The existing app uses CouchDB and GeoCouch to ensure that the client only retrieves data that is 'near' the user.
Firebase是否/将支持这种类型的功能,或者这是我自己需要做的事情?
Does/will Firebase support this type of feature or is this something I will need to do myself?
推荐答案
我们不直接支持地理空间查询.当前,您需要自行将此功能添加到您的应用中.将地理数据存储在Firebase中的其他用户有很多运气非正常化数据并使用地理哈希作为键.地理哈希使您可以通过缩短密钥来搜索"附近的区域.在此处查看说明: http://en.wikipedia.org/wiki/Geohash
We don't directly support geospatial queries. Currently, you'll need to add this functionality to your app on your own. Other users storing geodata in Firebase have had a lot of luck denormalizing data and using geohashes as keys. Geohashes let you "search" for nearby regions by truncating the key. Take a look at the description here: http://en.wikipedia.org/wiki/Geohash
这篇关于Firebase是否进行地理空间处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!