geohash-mysql-func
geohash-mysql-func copied to clipboard
geohash function for mysql
If you are looking for a more fleshed-out implementation of Geohash related functions for TSQL, I have just published an Open Source library, [QalGeohash-TSQL](https://github.com/qalocate/qalgeohash-tsql) in which you might be interested.
The example you provided for your decode function returns lat/longs that are in Antartica. Is there a fix for this function?
Hello, I just discovered your repository and thank you for the implementation. I just adapted the sql script to the T-SQL syntax, and when I test your example in geohash_encode...
``` sql SELECT geohash_encode(57.64911, 10.40744, 5), geohash_decode( geohash_encode(57.64911, 10.40744, 5) ) ``` returns: `u4pru` and ``` -82.7929688,-179.5605468 -82.7490234,-179.5166015 -82.7709961,-179.5385741 ``` As I understand last line of geohash_decode(hash) result should be...