anovis / proximity_hash

Proximity Hash generates a set of geohashes that cover a circular area, given the center coordinates and the radius.
https://pub.dev/packages/proximity_hash
Apache License 2.0
5 stars 0 forks source link

createGeohashes returns duplicate geohashes #2

Closed yulkin2002 closed 3 years ago

yulkin2002 commented 3 years ago

tried createGeohashes(43.649093099999995, -79.42056769999999, 4000, 5);

result: [dpz83, dpz82, dpz83, dpz2r, dpz89, dpz81, dpz88, dpz80, dpz89, dpz81, dpz2x, dpz2p]

three of these are duplicates, is this intended? dpz83,dpz89,dpz81

anovis commented 3 years ago

thanks for reporting @yulkin2002 . this is not intended so will investigate and provide a fix.

anovis commented 3 years ago

was able to fix the bug @yulkin2002 . please try version 1.1.0 for the fix

yulkin2002 commented 3 years ago

@anovis thank you for a quick fix, it works now. Also, thank you for creating and publishing this package, it is very useful!