Questions tagged [geofirestore]

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

GeoFirestore is an open-source JavaScript library that allows you to store and query a set of items based on their geographic location. GeoFirestore uses Firebase's Cloud Firestore, allowing query results to be updated in realtime as they change. It selectively loads only the data near certain locations, keeping your applications light and responsive, even with extremely large datasets.

GeoFirestore is an MIT-licensed open source project, which you can see here: https://github.com/geofirestore/geofirestore-js

Related tags

126 questions
7
votes
4 answers

Error deploying Firebase Cloud Functions on Node runtime 10, but works on Node runtime 8

I am trying to implement geofirestore in my cloud functions. The functions deploy correctly in Node runtime 8, but there is an error in deployment in runtime 10. My index.js header is as below: const functions = require("firebase-functions"); const…
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
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
2 answers

Retrieve users from Firestore within a range using GeoFireStore Android

In my Android application, I need to get a list with users from Firestore within a range using GeoFireStore. Database structure in Firestore: All the information I got from this link. Dependency: implementation…
Yury Matatov
  • 805
  • 3
  • 11
  • 23
3
votes
1 answer

Why this callable cloud function is failing with "app":"MISSING"?

I am calling a cloud function which runs a transaction, however it is returning an error to console which says: Callable request verification passed {"verifications":{"auth":"VALID","app":"MISSING"}} Googling it led me to App Check which is a new…
3
votes
1 answer

How to implement GeoFirestore in Firebase Cloud-Functions the right way?

I try to implement GeoFirestore to my Firebase Cloud-Functions. When I try to deploy my code this error occur "TypeError: GeoFire is not a constructor". I use the index.js file for my functions. I tried to implement the GeoFire reference in my…
Scholte47
  • 55
  • 4
3
votes
2 answers

Querying Geohashes in Firestore

Recently I've been playing around with Geohashes and Firestore. My todo scenario is to have a collection of documents (restaurants) and each restaurant will have list of Geohashes which delivers to. I want to avoid adding the geoashes in the…
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
1 answer

Firebase was cloned with another gmail account

My Firebase account was cloned with another Gmail account. The Firestore in cloud function with all the information of my client account is now cloned to my personal account. I have two Firebase accounts, one is for my client, were all live data is…
PRATHIV
  • 352
  • 2
  • 10
2
votes
1 answer

How exactly does the snapshot listener metric in Firestore work?

I am building a flutter app, and I am using a stream to subscribe to Firestore query results. Unfortunately, I don't understand how the snapshot listener metric works, combined with this tidbit from the documentation: Does the 27 peak mean I've…
user1354934
  • 8,139
  • 15
  • 50
  • 80
2
votes
0 answers

How to paginate geoqueries in Firebase Firestore?

We are developing an app that needs to show 50 'available' users inside a given distance range (users can be 'available' or 'not available'). On a Firebase cloud function, GeoFirestore is used to perform geoqueries to filter by distance, and the…
2
votes
1 answer

Unhandled Exception: type '_InternalLinkedHashMap' is not a subtype of type 'GeoPoint'

I want to get current user location on google maps by detected phone device. I was declare my position as geopoint in my model class to get the coordinate map from google maps. so i was confuse either I need to declare my position as geopoint or…
user14559438
2
votes
1 answer

Error: Invalid location: latitude must exist on GeoPoint

I am getting the below error when accessing firestore document in cloud function "Error: Invalid location: latitude must exist on GeoPoint" I am seeing below error on firebase logs Error: Invalid location: latitude must exist on GeoPoint at…
2
votes
2 answers

Accessing GeoFirestore Utility Functions (calculateDistance)

I'm new to web development. I am writing a javascript webapp and am unclear on the syntax to access GeoFirestore's calculateDistance utility function and get the error ReferenceError: calculateDistance is not defined. This function is located in the…
YEG
  • 473
  • 4
  • 12
2
votes
1 answer

Why I am only getting one document using geofirestore

I am trying to query the nearest documenst to the user location using geofirestore, my code fetch 1 document only, and as you see in the code I set the radius to 100km, and I set the location of the document from the same location. This is the…
YQadoome
  • 178
  • 14
1
2 3
8 9