firebase / geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
MIT License
1.44k stars 345 forks source link

Query does not return locations inside of greater locations #209

Closed jasonc624 closed 3 years ago

jasonc624 commented 3 years ago

Version info

Firebase: "firebase-admin": "^9.4.2",

GeoFire: "geofire-common": "^5.1.0",

Using in Firebase functions

Test case

Same boilerplate (https://firebase.google.com/docs/firestore/solutions/geoqueries#web)

Steps to reproduce

Search for address inside of the city of Orlando, FL

Payload: { geohash: "djn4k5jry7", latitude: 28.5383355, longitude: -81.3792365 }

Expected behavior

A item in the collection should show if the address is inside of the city of Orlando

Actual behavior

Returns an empty array.

Item hoping to be matched : { geohash: "djn443e5g3", longitude: -81.4593543, latitude: 28.4854555 }

Only returning exact matches.

puf commented 3 years ago

Can you show:

  1. the code with which you write the item to GeoFire,
  2. the code for the query you execute?

With those we should be able to reproduce the issue you're having.

Going forward you might get more response to this type of problem by posting on Stack Overflow.