Geographic Functions, any takers?

Francis Nugent Dixon effendi at wanadoo.fr
Mon Aug 30 16:28:29 CDT 2010


Hi from Beautiful Brittany.

Ewan wrote :

> Compute true course and distance between points.

I don't know if I have something which may solve
part of your problems.

I travelled a lot, before retiring, and always
kept a note of cities visited, and stopovers
on the way. I decided, one day to feed all of
my data into a TRAVEL stack, to see how far I
had really travelled (finally, more than 2 million
klicks).
I picked uf a file on the internet with position
co-ordinates of 10,000 cities in the world, and
than converted these co-ordinates to Lat/Long
in radians.  Then with a Haversine formula, I
can calculate the distance between any two cities
in the world (in km.), with up to 6 stopovers.

example : Paris-Lisbon-Rio-London-Paris.

You can, of course, feed in co-ordinates of any
point on the globe, of any small town not in the
list of 10,000 !

If my calculations are of use, just shout !.

Best Regards,

-Francis

"Nothing should ever be done for the first time !"







More information about the use-livecode mailing list