Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Distance Between Two Cities
Message
 
À
28/08/2006 18:13:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01149128
Message ID:
01149320
Vues:
32
Hi, Greg.

>There is an article in FoxPro Advisor (seems like it was in the last year to >year-and-half) on doing maps in VFP9 -- it used the new polypoints property.

Great. I'm going to look for this article.

>I think the article also provided some info on getting distances between points.
>An alternative is to use a postal code table with latitude and longitude coordinates
>which can be used to calculate straight line distances.

This looks kinda interesting:

http://webservices.imacination.com/distance/

Personally, I'd like it if we could just query a local table, and if the
driving distance between two cities is not found, then VFP would query
some net-based server with something like:

distance = driving_distance("Houston,TX.","Dallas,TX.")

Where: distance is ASCII char 5. On error, return a null string.
On success, update the local drive_distance table.

I have yet to find this on the web, and I'm seriously thinking
about writing some open source server-client code for this in VFP,
C, C++, and PHP. A CORBA client would be kewl, too. I'm 99.999%
sure I can get all of the required data for free from the US Postal
Service, the US Geological Survey, or some other government agency.
Quite frankly, I'm _VERY_ surprised that the US government doesn't
provide this service. OTOH, maybe my web-searching skills need
improvment :^).

Randall "Still searching the web" Jouett
--
Randall Jouett
Amateur/Ham Radio: AB5NI
I eat spaghetti code out of a bit bucket while sitting at a hash table! Someone
asked me if I needed salt, and I said, "I'm not into encryption." :^)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform