Questions tagged [geofire]

GeoFire is a library for storing and querying geographic locations and receiving realtime updates when location data changes.

GeoFire is an open-source library that allows you to store and query a set of items based on their geographic location. GeoFire uses Firebase for data storage, allowing query results to be updated in realtime as they change. GeoFire does more than just measure the distance between locations; it selectively loads only the data near certain locations, keeping your applications light and responsive, even with extremely large datasets.

GeoFire is an MIT-licensed open source project, which you can see here: https://github.com/firebase/geoFire

Related tags

576 questions
6
votes
1 answer

Firestore - I want to dynamically add where statements to my collection

Tech: I'm using Angular 7, Firestore, GeoFireX. Outcome I want: I want to add .where queries if that query is required by the users. For example below I have four .wheres. I might only need two sometimes and therefore will only want to add two using…
AngularM
  • 15,982
  • 28
  • 94
  • 169
6
votes
2 answers

Firebase query using a list of ids (iOS)

I have an NSArray containing multiple ids. Is there a way in Firebase where I can get all the object with the ids in the array? I am building a restaurant rating app which uses GeoFire to retrieve nearby restaurants. My problem is that GeoFire only…
6
votes
1 answer

Querying Nearby Locations with GeoFire

I'm having a difficult time understanding how GeoFire queries nearby locations; I'm building a geo-based app that will fetch nearby locations based on the users location. My data is structured as follows locations -Ke1uhoT3gpHR_VsehIv …
Clay Banks
  • 4,483
  • 15
  • 71
  • 143
6
votes
2 answers

Trying to rollback Firebase version to 2.X

I recently updated to the new Firebase 3 but unfortunately as far as I can tell it doesn't support Geofire queries at the moment which is important in my app, I've rolled everything else in my application to using firebase 2 however when I try to…
harryfo
  • 106
  • 1
  • 5
5
votes
2 answers

GeoFlutterFire Flutter plugin for Firestore not return distance field

I'm using GeoFlutterFire, a plugin for Flutter which sifts a collection for records that are near a specified GeoFirePoint. A distance key is supposed to be returned with the Firestore s but none is, only the default keys. When I…
Sam
  • 1,659
  • 4
  • 23
  • 42
5
votes
1 answer

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

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…
philshem
  • 24,761
  • 8
  • 61
  • 127
5
votes
4 answers

Geofire error with setLocation

I am trying to learn geofire I try to implement the SFVehicle app but it is showing error can you please help this is the crucial part of my project public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private…
5
votes
1 answer

Firebase: Listening to multiple user nodes

I'm working on an app using Firebase and Geofire. On running the Geo query at the current location, let's say I receive 10 keys in the OnKeyEntered override method. Each of these keys is essentially a user node in Firebase. I need to listen to each…
Kashif
  • 4,642
  • 7
  • 44
  • 97
5
votes
3 answers

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

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…
Hammad Nasir
  • 2,889
  • 7
  • 52
  • 133
5
votes
3 answers

GeoFire query on User location

I'm quite new to work with Firebase and its location library, GeoFire. Currently I'm facing some problem when structuring my data. At the moment my db is something like this: users facebook:xxxxx displayName: xx firstName: xx lastName:…
giacavicchioli
  • 334
  • 2
  • 14
4
votes
0 answers

Unable to Properly Observe Firebase After GeoFire Query

I have a function that shows pins on a MKMapView based on the user's current location. This function utilizes GeoFire's GFQuery: // Allows the user to scroll on the map and have the parties update func mapView(_ mapView: MKMapView,…
4
votes
1 answer

Is there a way I can combine a GeoFireStore query with a normal Firestore query?

I want to query users which I have stored in a collection named "Users". Each user has fields such as age and weight. Is there a way I can query the users by distance from the user running the search with GeoFire and combine it with FireStore search…
4
votes
1 answer

GeoQuery and GeoFire listeners clashing resulting in random results

In short, I am working on an app which is meant to get the current user last known location and show nearby users (within radius of 30km) on Swipe Cards. I am using FireBase and GeoFire to accomplish this. Before I implemented location querying, I…
puk789
  • 322
  • 2
  • 8
  • 28
4
votes
1 answer

Android - Wait for volley response for continue

I build an app, that it load markers in a map, the markers I get it for volley JSON file, but I need that first to load volley, and after continue executing the code, because the other way show me error with latLng null, this parameter is not loaded…
Cris
  • 57
  • 1
  • 4
4
votes
1 answer

Filter geoFire queries by certain criteria before populating viewHolder in Android

I have successfully implemented geoFire to get the keys of entries from a main firebase node within the user's area. I have then attempted to store those keys in a new, unique node, in order to use them later to populate a viewHolder, as this seems…
1
2
3
38 39