Logo

dev-resources.site

for different kinds of informations.

Geohash Open-Source library in TSQL for SQL Server

Published at
3/8/2021
Categories
sqlserver
tsql
geohash
location
Author
chaotic3quilibrium
Categories
4 categories in total
sqlserver
open
tsql
open
geohash
open
location
open
Author
18 person written this
chaotic3quilibrium
open
Geohash Open-Source library in TSQL for SQL Server

After searching for a SQL Server TSQL implementation of Geohash types and conversion functions, I finally just went and wrote a whole open-source library myself:

I designed it for maximum accuracy, performance, and strong conversion consistency guarantees. It enables an average IT data warehouse analyst or report writer to efficiently use, process, and leverage simple GIS spatial proximity models and queries. Given the steep learning curve of finding and adopting a full GIS style solution for data-science/big-data/data-analytics, this library can enable a temporary or good-enough solution until new requirements require investing in a more fleshed out GIS solution like Mapbox, ESRI, etc.

It provides two Geohash implementation types; Integer (BIGINT) and String (VARCHAR). It also provides two coordinate types; Longitude+Latitude and DMS. And then it provides the conversions to and from these various types. It also provides conversions to/from the SQL Server spatial geography Point type.

Please see the README.md for detailed information.

tsql Article's
30 articles in total
Favicon
T-SQL avanzato: tecniche da ricordare
Favicon
SQL Server Management Studio (SSMS)
Favicon
T-SQL , Stored Procedures UNIT Testing - Part 2
Favicon
How to check if a temporary table exists and delete it if it does before creating a temporary table?
Favicon
How to search for text in a SQL Server stored procedure, function, or view?
Favicon
SQL Server 2022 - GENERATE_SERIES
Favicon
SQL Server 2022: Logical Functions - GREATEST & LEAST
Favicon
SQL-Quick tip #15 - Random dates
Favicon
SQL-Quick tip #13 - Index usage
Favicon
SQL-Quick tip #14 - Server information
Favicon
SQL-Quick tip #8 - Finding foreign key constraints
Favicon
SQL-Quick tip #12 - Available disk space
Favicon
SQL-Quick tip #10 - Select table definition
Favicon
SQL-Quick tip #11 - Most intensive queries
Favicon
SQL-Quick tip #9 - Number of rows in all tables
Favicon
How to find an account balance in SQL?
Favicon
SQL-Quick tip #7 - Find stored procedures
Favicon
SQL-Quick tip #6 - Find table or column
Favicon
SQL-Quick tip #5 - Create a sequence of date and time
Favicon
SQL-Quick tip #2 - Randomize rows
Favicon
SQL-Quick tip #4 - Random Int for each row
Favicon
SQL-Quick tip #1 - Range of Int
Favicon
SQL Server Primary Keys
Favicon
Calculating length of ntext data type with T-SQL
Favicon
What are the gotchas when converting a T-SQL statement into a JavaScript RegExp?
Favicon
How to prevent duplicate count value for inner join
Favicon
SQL Server: The Identifier Is Too Long; Max Length Is 128
Favicon
Geohash Open-Source library in TSQL for SQL Server
Favicon
How to monitor backup and restore progress in SQL Server
Favicon
SQL Query Inner Join for SUM Amount

Featured ones: