Are there any built in functions for dealing with geohashes in SQL Server? Either to go to/from polygon representations or to get the center point? I looked through the geography functions here but didn't see anything...
If there aren't built in functions is anyone aware of any definitions for user defined functions that might be floating around out there that do this? I know that the algorithm is publicly available but I'd rather not roll my own SQL implementation if it's already been done.
I created a basic user sclarar function that accomplishes some of this:
https://github.com/Broham/SQL-Server-Geohash
Currently it will just take a geohash and return it's center lat/long but it could easily be modified to return a bounding box, get a geohash for a lat/long or any other number of use cases. Hope this is helpful to someone