spatial – Chris Coulson's Developer Notes https://blogs.visigo.com/chriscoulson Tips on .Net, SQL Server, Sharepoint & AI Thu, 06 Feb 2020 06:20:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.5 https://blogs.visigo.com/chriscoulson/wp-content/uploads/2011/02/chris_profile-150x150.jpg spatial – Chris Coulson's Developer Notes https://blogs.visigo.com/chriscoulson 32 32 SQL Server Spatial Data: Finding and Ordering Distance Between 2 Points https://blogs.visigo.com/chriscoulson/sql-server-spatial-data-finding-and-ordering-distance-between-2-points/ https://blogs.visigo.com/chriscoulson/sql-server-spatial-data-finding-and-ordering-distance-between-2-points/#comments Thu, 06 Feb 2020 06:20:31 +0000 https://blogs.visigo.com/chriscoulson/?p=460 It’s pretty common to want to find the distance from a certain location to a location stored in your database. For example, in the Home Depot or Walmart website you might want to find the closest store. The locations of all of the stores will be stored in a database, and then given your location the distance to each store can be calculated and ordered by the closest stores.

Source

]]>
https://blogs.visigo.com/chriscoulson/sql-server-spatial-data-finding-and-ordering-distance-between-2-points/feed/ 1