Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proximity search
Message
From
13/04/2010 03:14:47
 
 
To
13/04/2010 03:09:16
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01459851
Message ID:
01459869
Views:
44
>Some things come to mind
>
>(1) They may also store the lattitude in radians to speed up the calculation
>(2) They may have a table that stores all the distances (and update it within a trigger if the coordinates of a city are changed/added)
>eg 10,000 cities would be a table of 10,000 * 10,000 / 2 records = 50,000,000 records

I am looking at this right now:

http://msdn.microsoft.com/en-us/library/ms980211.aspx

As for point 2, in order to know a distance, we need two set of coordinates. So, this can only be known when the user do the search. So, basically, calculation applies at search time only. In the page I have added here, there is a SQL Server code to do this so I am trying it now. But, the more records there is, the more time it will take.
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