firebase / geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
MIT License
1.45k stars 345 forks source link

data structure: bind my data with geofire coordinates. #157

Closed jatazoulja closed 6 years ago

jatazoulja commented 7 years ago

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...

asciimike commented 6 years ago

Closing since this is a dupe of #121