Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Ability to use multi location updates with geofire #51

Open
droidster opened this issue Oct 28, 2016 · 4 comments
Open

Ability to use multi location updates with geofire #51

droidster opened this issue Oct 28, 2016 · 4 comments

Comments

@droidster
Copy link

droidster commented Oct 28, 2016

It would be a very good (probably ideal) way to do writes and updates if the data and location could be updated simultaneously, instead of writing the data, then writing location on success of data write, and reverting the operation all together incase of failure of either of the 2 writes.

Multi location updates is available in firebase, it could be a really good addition to geofire. Thoughts?

@xsorifc28
Copy link

See here, I think that is what you are trying to do.

@droidster
Copy link
Author

droidster commented Oct 29, 2016

Hi @xsorifc28 Thanks for the link. I'm aware of that but I'm not sure if doing that will work with Geofire. Geofire stores location in a particular manner. I exported the json to post here.

"_locations" : {
    "geofire-key" : {
      ".priority" : "9q8yywdgue",
      "g" : "9q8yywdgue",
      "l" : [ 37.7853889, -122.4056973 ]
    }
  }

I don't know what "g" is and how it is created and looking at the exported json, it is same as ".priority", which again I don't know what it is. And "l" is an array, so I will need to store it like that and not use the GeoLocation object at all? I'm confused as to how to move forward.

@xsorifc28
Copy link

I see what you're trying to do. An input from one of the devs would be helpful.

@vanniktech
Copy link
Contributor

Is this something we want to support?

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

No branches or pull requests

4 participants