I would like to use geofire for multiple location queries but don't know how to assign individual keys to each location. Does geofire automatically assign each user's location a different key?
Here is my Geofire code:
if (gps.canGetLocation()) {
double latitude = gps.getLatitude();
double longitude = gps.getLongitude();
location.setText(latitude + "" + longitude);
//add points to database
myRef = database.getReference("Location");
GeoFire geoFire = new GeoFire(myRef);
geoFire.setLocation("Person", new GeoLocation(latitude,longitude));
} else {
gps.showSettingsAlert();
}