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
3
votes
0 answers

Query firebase data linked to GeoFire

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…
Jacob
  • 2,338
  • 2
  • 22
  • 39
3
votes
2 answers

Integrating Geofire with Firebase Data

I am trying to integrate Geofire into a Firebase Objective-C app, but I'm not sure how to set up the Geofire node to observe my Firebase storage base. Here is what the Geofire start-up guide advises: "To create a new GeoFire instance you need to…
Philip Sopher
  • 627
  • 2
  • 8
  • 19
3
votes
2 answers

Filtering results with Geofire + Firebase

I'm trying to figure out how to query with filter with Geofire. Suppose I have restaurants with different category. and I want to add that category to my query. How do I go about this? One way I have now is querying the key with Geofire, run the for…
ordinaryman09
  • 2,761
  • 4
  • 26
  • 32
3
votes
1 answer

Firebase & Geofire performance: Get keys in array instead of 1 by 1

I'm working in angular with firebase and geoFire. I figured out how geoFire works but i still have these 2 questions about performance: In the geoQuery.on() callback, can i get 1 array with keys returned instead of 1 callback per 1 event. In the…
kevinius
  • 4,232
  • 7
  • 48
  • 79
3
votes
0 answers

does GeoFire support geo queries search for polygons within point, rather than points within polygons?

My query would be to find what neighborhoods(polygons) I'm in or close to. The geofire examples only show the vice versa, where I'm searching for points within a shape (circle or region). https://github.com/firebase/geofire-objc Does geofire…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
2
votes
1 answer

TypeError when using GeoFire with Firebase 9.17.1: "t.split is not a function"

I would like to ask a question regarding Firebase and Geofire. I am using Firebase version 9.17.1 with Geofire version 6.0.0. Based on the documentation, I have written the basic code, but I am receiving the following error message: [TypeError:…
2
votes
1 answer

Maximum call stack error for geofire ( firebase-real time database )

I am using real time database as firebase and i used geofire javascript package to get near by data from firebase. but some time it automatically gives error like : RangeError: Maximum call stack size exceeded at ChildrenNode.isLeafNode…
2
votes
0 answers

Querying GeoHashes in Firestore returns nothing

The code that retrieves all locations from Firestore within a 50km location of a given point is given on the Firebase website. Here it is: // Find cities within 50km of London let center = CLLocationCoordinate2D(latitude: 51.5074, longitude:…
user19498841
2
votes
1 answer

Can Firebase's GeoFire be downloaded via Swift Package Manager?

Can Firebase's GeoFire be downloaded via Swift Package Manager? I read a comment here that it can be if Firebase is installed under the main branch instead of a version rule, but the Firebase docs only mention installing via CocoaPods. Also, if it…
Eric
  • 569
  • 4
  • 21
2
votes
1 answer

Swift - GeoFire removeObserver Not Working, seeking for workaround please

I find out that both removeObserver and .removeAllObservers() is not working in GeoFire, hoping another work around to "get out" of this observe (which keeps loading forever) var newRefHandle: FIRDatabaseHandle? var gFCircleQuery:…
Ryan Fung
  • 2,069
  • 9
  • 38
  • 60
2
votes
2 answers

import geofire-common with firestore for browser code

I'm a bit confused trying to use geofire-common in browser code. In the beginning, I've made a successful attempt with NodeJS which uses geofire-common referenced here in the Google documentation and which code looks like this: import {…
Big_Boulard
  • 799
  • 1
  • 13
  • 28
2
votes
1 answer

Store geofire query results in hooks

Hi I have been stuck in a React Function useState and geofire. I just want to learn hooks and useState, but I can not have any progress even struggling too much to find a solution. here is my database component code which is throwing an error import…
Bijan Kundu
  • 415
  • 5
  • 11
2
votes
1 answer

Flutter Snapshot of Streambuilder has no data after condition is met

I have a class Home with a PageView as body and a BottomNavigationBar. In this class the current user and the current location of the user is loaded. When the user and the location is known, a global variable is set to true On the first tab icon of…
Juju
  • 439
  • 3
  • 18
2
votes
0 answers

iOS 13 firebase is not working "The request timed out"

I am using the firebase with iOS 12 and lower version. its working perfectly. After that I update the iOS 13 beta and I tried the firebase. But unfortunately it's not working. I checked the log. Its like this Domain=NSURLErrorDomain Code=-1001 "The…
Puvanarajan
  • 2,786
  • 6
  • 26
  • 37
2
votes
0 answers

How do i push geofire data into a array

I am using GeoFire to get nearby locations then using the keys to get a database reference and then trying to push that data into a array, but can't get it to work. Any help would be sweet :) let myArray = [] var database = firebase.database(); //…