1

Does anyone know a good method, or library to match 2 gps locations based on proximity to each-other?

while being fed a few 100 GPS locations per device per hour.

I currently do it by having the client send their Geohash to a database, then request all neighboring hashes around it and all other clients in those hashes, then get their GPS to check for distance.

But this does not seem to work flawlessly, it works on tests and emulators (its for phones) but on real phones it seems to be hit an miss, but no errors, the event just does not seem to fire.

Comments
  • 0
    Geohashes have variable precision. Database is a sound way to do it if it has geocapability, and doing it that way I would assume precision is the issue.

    Without knowing the language, I can only generically prescribe the method: k-nearest-neighbor or k-means
  • 0
    @SortOfTested JS and using firebase's realtime database(nosql)

    im using the geohashes so i dont have to query over GPS positions all over the world
  • 0
    Mongodb's geotag querying would work
  • 0
    GeoFlutterFire which does document querying based on coordinates stored within said documents OR active users. Leafly has a pretty sick setup that ties in with JS as well I'm just not sure what you're working with here
Add Comment