Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting from distance for geography coordinates
Message
From
22/11/2011 13:35:15
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01529492
Message ID:
01529567
Views:
15
>George suggests to use
>
>I would recommend that you allow the calculations to process the data using miles. If you want the results in KM, simply multiply values by 1.609344. You could modify the CalculateDistance function to multiply by this value just prior to returning.

>
>but I don't see how did he arrive to the constants used in these formulas (I assume Michel used his scripts).

This goes back to last year from several threads created on the topic. At that time, it was R & D but only since a week I have put it all in a class Geography to do multiple related operations. So, those values probably come from one of those threads. I did adjust it to kilometer as this is our baseline. But, if a request to go in miles would apply, I also have a formula for that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform