geofire

Does Firebase “GeoFire” Enforce Identical Keys Between Nodes with Geo and non-Geo Data?

微笑、不失礼 提交于 2019-12-11 09:02:46
问题 The database structure for a Firebase "GeoFire" node must look like this (source) "items" : { <itemId> : { "someData" : "someData", ... } }, "items_location" : { <itemId> : { <geofireData> ... } } But one limitation of Geofire is that only single points can be stored and queried, and no objects like polygons. That's easy to work around - my code can query nearby points, and then reassemble the simple rectangles based on having the same key. But in splitting my rectangles into individual

GeoFire giving problems with CocoaPods

…衆ロ難τιáo~ 提交于 2019-12-10 21:25:34
问题 I'm trying to add Geofire to my iOS project that uses Google Firebase as a backend. When I add the Geofire pod and run pod update I get this message in terminal... [!] Unable to satisfy the following requirements: - `Firebase` required by `Podfile` - `Firebase (~> 2.1)` required by `GeoFire (1.1.0)` Specs satisfying the `Firebase, Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target. Here is what my Podfile looks like... # Uncomment this line to

Firebase RTDB: updating/merging new with old data from CLI

喜你入骨 提交于 2019-12-10 15:02:10
问题 I have multiple (big) JSON files that I want to add to Firebase Real-time Database (RTBD). I'm using Geofire, so all the children nodes need to be under the same parent. I'm storing static geo-data but I want to periodically refresh it in pieces. If I can't refresh it in pieces, it becomes problematic to always guarantee that the one big JSON I am updating with is always 100% complete. My desired data structure is like this: {"parent" : {"child_a" : 1, "child_b" : 2} Where my first JSON looks

Firebase, AngularJS and GeoFire - wait for response from factory

懵懂的女人 提交于 2019-12-10 11:36:04
问题 I'm starting to learn a lot of things related to the hybrid apps coding. I decided to go on and use Ionic framework, based on AngularJS (this gives me the occasion to learn it), and use Firebase as my backend solution. I want to setup a map in my app, so I would locate the user and some points of interests around him. I found out GeoFire existed, so I started working with it. My problem : I fail in displaying a user's location saved into Firebase. I query it using GeoFire, and get the

Angular Universal (ssr) not working for Firestore and Geofirestore

无人久伴 提交于 2019-12-09 03:27:05
问题 Issue : Angular Universal (ssr) not work for pages that use Firebase Firestore database. Tech : Angular version 7, Angular Cli, Angular Universal, Firebase hosting, Firebase Functions, Firebase Firestore database. My server side rendering works fine on all pages. Issue is when I view this page: [https://behired-staging.firebaseapp.com/job-board][1] it doesnt show the data. The data doesnt take too long to load either. I see the html, but not the ul li for the list of 20 jobs on display.

How can i get user nearby my location in geofire,Firebase

只愿长相守 提交于 2019-12-08 13:57:39
问题 With this code, I am getting only one value from Geolocs just key and location, not a nearby location.What is wrong with it var geoFireRef: DatabaseReference? var geoFire: GeoFire? var myQuery: GFQuery? func Geofire() { geoFireRef = Database.database().reference().child("Geolocs") geoFire = GeoFire(firebaseRef: geoFireRef!) self.geoFire?.setLocation(currentLocation!, forKey:Auth.auth().currentUser!.uid) myQuery = geoFire?.query(at: currentLocation!, withRadius: 100) myQuery?.observe(

Can I use firebase's GeoFire with Priority in a single query?

非 Y 不嫁゛ 提交于 2019-12-08 10:34:18
问题 I'd like to query my data with a query that will return me everything on a radius (geofire can find that alright) but also within a datetime window. At the moment I'm storing datetimes as priorities, so it's quite easy to query the array asking for data between 2 priority numbers (corresponding to start/end datetimes). It's also quite easy to put my data in a GeoFire array and then query it to get the radius. Can I combine those 2 though? In an easy not too hacky way? Cheers 回答1: Not with a

How to retrieve posts that are within 0.5 kms of my reach?

时间秒杀一切 提交于 2019-12-07 11:34:33
问题 I am saving the coordinates of the post posted by the users. I'm generating a push id and then using it to save both the data of the post and the geofire coordinates. I want to show only those posts which are within 0.5 kms radius of them. I am using GeoFire library for the same but I'm unable to achieve the task. Here's how I'm generating the push id: itemID = databaseReferenceRequests.push().getKey(); Here's how I'm using it to save geofire coordinates as well as the data of the posts:

Retrieving Keys From GeoFire within Radius in Swift

丶灬走出姿态 提交于 2019-12-06 09:01:15
问题 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 ] } },

Query firebase data linked to GeoFire

China☆狼群 提交于 2019-12-06 08:33:34
问题 After reading these questions: Associate Geofire location with Firebase entry Filtering results with Geofire + Firebase I understand that for a given instance, the location data and regular data for that object must be kept separate, and therefore I must have different listeners. The first to find the location data, and then one for each of the objects that corresponds to those found by the location query. However, my question is regarding listeners for the actual data itself, not the