Jump to content

Flight Distance


WA101-ALLAN

Recommended Posts

  • Administrators

Could be a lot of things....

Have you deleted airports from the database that are used in previously filed pireps and current schedules?

Are the cities you are having trouble with have the correct Latitude and Longitude in the database?

Link to comment
Share on other sites

if you know some php.. this could help you:

$lat1 = '48.12'; // replace with lat from dep apt (variable)

$lon1 = '16.56'; // replace with lon from dep apt (variable)

$lat2 = '48.06'; // replace with lat from arr apt (variable)

$lon2 = '17.08'; // replace with lon from arr apt (variable)

$distance = (3958*3.1415926*sqrt(($lat2-$lat1)*($lat2-$lat1) + cos($lat2/57.29578)*cos($lat1/57.29578)*($lon2-$lon1)*($lon2-$lon1))/180);

echo round($distance,2);

echo ' nm';

Link to comment
Share on other sites

  • Administrators

All Airport information is correct in the system, the only airport that is working properly is the one our community designed. Also everything you have said is correct!

Kind Regards,

What do you mean by "the airport our community designed"? Is all the flights with odd flight distances to ro from that field?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...