Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jatazoulja opened this issue Jul 29, 2017 · 1 comment
Closed

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

jatazoulja opened this issue Jul 29, 2017 · 1 comment

Comments

@jatazoulja
Copy link

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
Copy link
Contributor

Closing since this is a dupe of #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants