Distance calculation

attached

[phpvms_airports.zip](< base_url >/applications/core/interface/file/attachment.php?id=126)

http://dev.phpvms.net/unittest/distancecheck.php

This is using the new algorithm, better?

im sorry but no  i put in EDDT as example and it shows me distance to EBBR is like

3530.7376885906 m

5682.172168572 km

but actually, its just like 1 hour far away

/edit: i just see you are updating it.. first time it was showing

"Enter airport: 

Plotting distance between () and…"

after i selected it so actually it looks like he didnt get the ICAO from what i typed in. Error still remains

Check it now, I didn’t have EDDT added:

Bruxelles National (EBBR)

    * 52.5597, 13.2877 > 50.9014, 4.48444

    * 393.91144700328 m

    * 633.93909671535 km

    * 342.2997196612 nm

looks like it works

i forgot to ask for that file or the place where you changed that algorithm because i dont want to update my whole system (i made so many addons that it would take weeks to convert all of them)