<legend id='GGaOD'><style id='GGaOD'><dir id='GGaOD'><q id='GGaOD'></q></dir></style></legend>
    <tfoot id='GGaOD'></tfoot>

        • <bdo id='GGaOD'></bdo><ul id='GGaOD'></ul>

        <small id='GGaOD'></small><noframes id='GGaOD'>

        <i id='GGaOD'><tr id='GGaOD'><dt id='GGaOD'><q id='GGaOD'><span id='GGaOD'><b id='GGaOD'><form id='GGaOD'><ins id='GGaOD'></ins><ul id='GGaOD'></ul><sub id='GGaOD'></sub></form><legend id='GGaOD'></legend><bdo id='GGaOD'><pre id='GGaOD'><center id='GGaOD'></center></pre></bdo></b><th id='GGaOD'></th></span></q></dt></tr></i><div id='GGaOD'><tfoot id='GGaOD'></tfoot><dl id='GGaOD'><fieldset id='GGaOD'></fieldset></dl></div>

        在 Swift 中从 Radius 中的 GeoFire 检索密钥

        时间:2023-09-01

            <small id='hYceP'></small><noframes id='hYceP'>

            <tfoot id='hYceP'></tfoot>

                  <tbody id='hYceP'></tbody>

                  <bdo id='hYceP'></bdo><ul id='hYceP'></ul>
                • <legend id='hYceP'><style id='hYceP'><dir id='hYceP'><q id='hYceP'></q></dir></style></legend>
                  <i id='hYceP'><tr id='hYceP'><dt id='hYceP'><q id='hYceP'><span id='hYceP'><b id='hYceP'><form id='hYceP'><ins id='hYceP'></ins><ul id='hYceP'></ul><sub id='hYceP'></sub></form><legend id='hYceP'></legend><bdo id='hYceP'><pre id='hYceP'><center id='hYceP'></center></pre></bdo></b><th id='hYceP'></th></span></q></dt></tr></i><div id='hYceP'><tfoot id='hYceP'></tfoot><dl id='hYceP'><fieldset id='hYceP'></fieldset></dl></div>
                  本文介绍了在 Swift 中从 Radius 中的 GeoFire 检索密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有以下 Firebase 数据库 JSON 数据结构:

                  I have the following Firebase Database JSON data structure:

                  {
                    "Post List" : {
                      "-KUlvg8mCEGfY5ZSKCou" : {
                        "addedByUser" : "7llQbPdy2NV7aO337h7ap0qLOhC3",
                        "content" : "Post1",
                        "cost" : "$450",
                        "duration" : "Daily",
                        "latitude" : "25.0879721592719",
                        "longitude" : "55.1487715855458",
                        "number" : "01234567890",
                        "timestamp" : "Posted on: Sun 23 Oct"
                      }
                    },
                    "Post Locations" : {
                      "-KUlvg8mCEGfY5ZSKCou" : {
                        ".priority" : "thrnwznh58",
                        "g" : "thrnwznh58",
                        "l" : [ 25.0879721592719, 55.1487715855458 ]
                      }
                    },
                    "User Locations" : {
                      "7llQbPdy2NV7aO337h7ap0qLOhC3" : {
                        ".priority" : "thrnwypqu9",
                        "g" : "thrnwypqu9",
                        "l" : [ 25.0829547120321, 55.1505315855337 ]
                      }
                    }
                  }
                  

                  我希望有一个 GeoFire 查询,它将返回 1KM 半径内的所有键 [FIRAutoID's],例如的用户位置"这些帖子是静态的,一旦设置了用户位置,它也将被修复.从半径查询结果中,我期望返回-KUlvg8mCEGfY5ZSKCou",这样我就可以参考帖子详细信息.希望这是有道理的.非常感谢,D.无法在网上找到很多关于 GeoFire 的信息...看起来它仍处于初始阶段?...

                  I am looking to have a GeoFire query which will return all the keys [FIRAutoID's] within a radius of 1KM, for e.g. of "User Locations" these Posts are static and once the user location is set it will also be fixed. From the radius query result I am expecting to return "-KUlvg8mCEGfY5ZSKCou" so I can then make a reference the Post Details. Hope this makes sense. Many thanks, D. Cant find much online about GeoFire... looks like its still in the initial stages?...

                  推荐答案

                  想通了

                  func geoFireQuery() {
                  
                          let circleQuery = geoFire.query(at: self.myLocation, withRadius: 0.5)
                  
                          _ = circleQuery!.observe(.keyEntered, with: { (key: String?, location: CLLocation?) in
                  
                          print (key!)
                  
                      })
                  
                      circleQuery?.observeReady({
                          print("All initial data has been loaded and events have been fired!")
                  
                      })
                  
                  }
                  

                  这似乎给了我我需要的东西.现在将这些键引用到 FBDB 的另一部分.:)

                  this seems to be giving me what I need. Now to reference those keys to the other part of the FBDB. :)

                  这篇关于在 Swift 中从 Radius 中的 GeoFire 检索密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:从另一台设备实时定位安卓设备 下一篇:iOS 6 自动暂停不起作用

                  相关文章

                  最新文章

                  <i id='pwpeC'><tr id='pwpeC'><dt id='pwpeC'><q id='pwpeC'><span id='pwpeC'><b id='pwpeC'><form id='pwpeC'><ins id='pwpeC'></ins><ul id='pwpeC'></ul><sub id='pwpeC'></sub></form><legend id='pwpeC'></legend><bdo id='pwpeC'><pre id='pwpeC'><center id='pwpeC'></center></pre></bdo></b><th id='pwpeC'></th></span></q></dt></tr></i><div id='pwpeC'><tfoot id='pwpeC'></tfoot><dl id='pwpeC'><fieldset id='pwpeC'></fieldset></dl></div>

                  <small id='pwpeC'></small><noframes id='pwpeC'>

                  <legend id='pwpeC'><style id='pwpeC'><dir id='pwpeC'><q id='pwpeC'></q></dir></style></legend>
                      • <bdo id='pwpeC'></bdo><ul id='pwpeC'></ul>
                    1. <tfoot id='pwpeC'></tfoot>