Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proximity search
Message
De
13/04/2010 03:09:16
 
 
À
13/04/2010 02:54:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01459851
Message ID:
01459867
Vues:
54
>>There's also this http://geocoder.ibegin.com/downloads.php
>>
>>US zip codes with longitudes and latitudes
>
>Thank you, this is useful.
>
>I have a class that calculates the distance based on two sets of coordinates. However, I am still curious to know how they do it to calculate so fast that x number of records correspond to a 50 km radius, from a specific location, taking from a 10,000 records table.

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
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform