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
60
votes
6 answers

Is there a way to use GeoFire with Firestore?

GeoFire is tightly coupled to the Realtime Database, while geo-queries are a common functional dependency of many apps that are looking to migrate to Firestore. Is there any way to replicate the hashing/retrieval of locations in the Firestore…
19
votes
4 answers

How to save GeoFire coordinates along with other items in Firebase database?

I'm developing an app and saving some strings like postedAtTime, postedBy, postedOnDate in Firebase database. I want to save the GeoFire coordinates in the same node in which all the above string are saved, so that later I can do query,…
Hammad Nasir
  • 2,889
  • 7
  • 52
  • 133
15
votes
3 answers

What is the most efficient way to make a batch request to a Firebase DB based on an array of known keys?

I need a solution that makes a Firebase DB API call for multiple items based on keys and returns the data (children) of those keys (in one response). Since I don't need data to come real-time, some sort of standard REST call made once (rather than a…
14
votes
1 answer

How to add background service in Geofence android

I am trying to create a geofence with background service for monitor. The geofence create successfully and work when apps Activity is open but when close the app geofence not work. What should I do now. My code is: public class MapsActivity extends…
11
votes
4 answers

geofire android to store and retrive locations and display it on map

I am developing an taxi application in android. I need to store retrieve and update location of my cabs and show it on maps using geofire. I have used firebase for authentication. Need a complete tutorial for android geofire but can't find any I…
10
votes
1 answer

Firestore still retrieving documents from cache even though I've disabled persistence

My Firestore is still retrieving documents from cache even though I've explicitly told it not to: class MainActivity : AppCompatActivity() { val db = FirebaseFirestore.getInstance() override fun onCreate(savedInstanceState: Bundle?) { …
Zorgan
  • 8,227
  • 23
  • 106
  • 207
10
votes
7 answers

Remove Duplicates from an Array of GeoFire Objects

I am working with Geofire and Firebase on Angular 6 to store locations and unfortunately it's storing a lot of duplicates this is an example (console logging my variable currentHits): 0: {location: Array(2), distance: "48.84", url:…
Programmer Man
  • 1,314
  • 1
  • 9
  • 29
10
votes
2 answers

how to save Location Info in Firebase

I am trying to save location (so latitide and longitude) as one of the keys/fields in Firebase. In their example SFVehicles, they do show how to query once the information is stored but my problem is how do i save in the first place. In their blog…
user1406716
  • 9,565
  • 22
  • 96
  • 151
8
votes
2 answers

Using GeoFire to Populate Firebase Recycler View in android

I want to populate my recycler view so that, I can see who are the people/places nearby. I am using GeoFire to Query my database, which looks something like this. GeoQuery geoQuery = geoFire.queryAtLocation(new GeoLocation(latLngCenter.latitude,…
7
votes
3 answers

Geofire - not found locations

How can I get the all locations that are near to a passed GeoLocation(double lat, double lng) using Geo Queries. I have the following code (and it happens nothing): public void setCurrentLatLng(double lat, double lng){ this.lat = lat; …
Ricardo
  • 7,921
  • 14
  • 64
  • 111
7
votes
3 answers

Firebase file not found exception

I am using Firebase Database in a Rideshare app and I am trying to dump the code in a device and it shows me File not found an exception where the Jackson data bind library files are not being integrated at build time.I need to clean it and gradle…
Avinash Roy
  • 953
  • 1
  • 8
  • 25
7
votes
1 answer

Ordering Geofire results on Distance

I've been experimenting with Geofire for iOS but can't seem to find any way of returning the distance from the search position in a circle query. The GFQueryResultBlock only returns the key and position. Am I right in assuming that I have to…
user3053470
  • 241
  • 4
  • 9
7
votes
1 answer

Associate Geofire location with Firebase entry

So, I have an Android app that lets users view posts within a certain radius of their current location. I am storing the posts using firebase, but I couldn't find a way to query for posts within a specific radius in firebase, so now I am thinking of…
dramzy
  • 1,379
  • 1
  • 11
  • 25
7
votes
2 answers

Handling geocoding in Firebase?

Has anyone tried storing and/or searching on geocodes (e.g. lat/long) in Firebase? This is functionality that is built into MongoDB and as I'm considering using Firebase for our backend instead, I need to know how I'd handle this scenario in…
Patrick Sears
  • 328
  • 4
  • 8
6
votes
1 answer

My method does not work inside of onKeyEntered

I am trying to create an app that will allow users to rent a car nearest to them. I want to build a cardView with a textView and imageView once i find the nearest car, I created the method buildCardView to do that. My problem is that the cardView is…
1
2 3
38 39