I am using react native and firebase, i want to save specific coordinate along with some data attach to it, like description dateCreated etc. etc.
so far I was able to save the coordinate:
geoFire.set(id, params.coordinate).then(() => console.debug(arguments)).catch(error => { console.log(error); });
but how do I attach my data along with that coordinate?
and also allow me to query that data:
geoQuery = geofireRef.query({ center: coordinate, radius: 10.5 });
what's the proper data structure should I follow to work well with geofire?
Hi,
I am using react native and firebase, i want to save specific coordinate along with some data attach to it, like description dateCreated etc. etc.
so far I was able to save the coordinate:
geoFire.set(id, params.coordinate).then(() => console.debug(arguments)).catch(error => { console.log(error); });
but how do I attach my data along with that coordinate? and also allow me to query that data:
geoQuery = geofireRef.query({ center: coordinate, radius: 10.5 });
what's the proper data structure should I follow to work well with geofire?
TIA...