imperiumlabs / GeoFirestore-Android

GeoFirestore for Android - Realtime location queries with Firestore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get Location

vision4shops opened this issue · comments

Even though the bug was fixed i am still getting location doesnt exist exception. I have checked every possible way to resolve it. The set location is working fine and locations for documents are correctly set. When i try to retrieve these locations i get the previously mentioned exception. I used:
implementation 'com.github.imperiumlabs:GeoFirestore-Android:v1.5.0'
Firestore connection is checked, everything is working fine, this is a large scale app.
Please help me :)

I gave up on relying on this library for getting a location, despite the fact that location setting is still working. Instead I'm just getting the value manually as such (example in Kotlin)

fsDB.collection("LocationCollection").document("locationKey").get().addOnSuccessListener {
val geoPoint = it.data!!["l"] as GeoPoint
val locationOnMap = LatLng(geoPoint.latitude, geoPoint.longitude)}