Geofire.setLocation g and l

374 views
Skip to first unread message

Reuben Cabrera

unread,
Oct 19, 2016, 10:17:18 AM10/19/16
to Firebase Google Group
so i tried this based on the documentation of firebase
geoFire.setLocation("Current Location", new GeoLocation(latLng.latitude, latLng.longitude));

what I dont understand is that the structure shoes under "Current Location"
g which I dont know what it stands for and l which is see is for 0 - latitute and 1 - longitude

what is that g and what is it's value. I cant seem to see it on the documentation.

Jacob Wenger

unread,
Oct 24, 2016, 5:26:22 PM10/24/16
to fireba...@googlegroups.com
Hey Reuben,

In this case, "g" is short for "geohash," which you can read about here. Geohashes are the things that actually make all the queries possible. In general, you shouldn't have to concern yourself with how the data is structured within GeoFire and that format is actually subject to change in a future release (and it actually has once before). We designed the format to be as compact and efficient as possible which is why we went with single character keys instead of full names. Hope that helps clear things up.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/ab9b2ec4-5bac-42a0-8720-d568ed4d33a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages