firebase / geofire-android

GeoFire for Android apps
Apache License 2.0
133 stars 36 forks source link

queryAtLocation is not working because wrong geohash is getting created. #27

Closed manztou closed 2 years ago

manztou commented 2 years ago

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.

manztou commented 2 years ago

Sorry issue was at my end. Please ignore this.