firebase / geofire-android

GeoFire for Android apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

queryAtLocation is not working because wrong geohash is getting created.

manztou opened this issue · comments

Below is happenning with com.firebase:geofire-android:3.0.0 and com.firebase:geofire-android:3.2.0

val geoFire = GeoFire(db.child(dbref))
val geoLocation = GeoLocation(latitude, longitude)
val geoQuery: GeoQuery = geoFire.queryAtLocation(geoLocation, radius)

// above is not working. Through debug I've found that GeoFire is creating the wrong Geohash.

If I do val geoLocation = GeoLocation(latitude, longitude), then it works ok.

Of course, I have checked that what I'm passing is correct, i.e. the latitude is indeed the latitude & for longitude also.
Please investigate.

Sorry issue was at my end. Please ignore this.