firebase - How can I add fields named Latitude and Longitude using GeoFire in Firebase?
问题描述
I'm developing a Location Tracking App with Android Studio and need to store coordinates in a normalized manner (One Variable in One Field). Can I modify the location data created by GeoFire in Firebase? I would like to have a single field called Latitude and another one called Longitude. In the picture above you can see that the coordinates are both stored below one field called ' l ', I would like to modify this, or copy them as separate childs of the current userID in the node Location. Would greatly appreciate any help, thanks!
解决方案
Geofire 中没有内置任何内容供您控制属性名称。但由于 Geofire 是开源的,您可以修改它以使用您想要的属性名称。
请注意,Geofire 使用这些较短的名称来限制其使用的带宽,因此您的用户会看到带宽增加。
推荐阅读
- python - 如何在 python 中自动化我的情绪分析
- javascript - 通过 XMLHttpRequest 发送 HTML 表单数据
- python - 验证准确度低且不增加,而训练准确度正在增加
- uipath - 使用环境功能与单独的编排器进行生产和测试
- android - 我们可以有一个后台 vpn 应用程序(没有主动通知)吗?
- python - 在python中的每个列表列表中移动特定值(基于该值)
- http - 在 Angular 应用程序中拦截 Mapbox Geowebcache 切片请求
- linux - 用户可以创建文件或文件夹,但限制在 centos-8 中删除
- reactjs - 如何使用钩子停止 React 重新渲染,以冻结某个未使用但昂贵的 UI 部分
- java - 当高负载的tomcat线程突然增加并在几分钟后挂起