So using GeoFire I was able to put all the keys returned into a List.
ArrayList<String> arrayList = new ArrayList();
GeoQuery geoQuery = geoFire.queryAtLocation(new GeoLocation(37, -133), 1.6);
geoQuery.addGeoQueryEventListener(new GeoQueryEventListener() {
@Override
public void onKeyEntered(final String key, GeoLocation location) {
arrayList.add(key);
...
I think i'm supposed to add Listeners like so. How do I go about getting the BizName to populate a listView? It's great I have the keys but I want the values associated with those keys.
mRootRef.child("Businesses").child(key).addListenerForSingleValueEvent(new ValueEventListener(){
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
Data data = dataSnapshot.getValue(Data.class);
data.getBizName();
}