Jump to content

Recommended Posts

Posted

Hello all im am currently have distance calculations all messed up not sure what it is but alot of flights are showing me like 6000 miles when they are like 250 miles. Anything i can do to fix this?

Kind Regards,

Allan

Wings Aviation

www.wingsonair.net

allan@wingsonair.net

  • Administrators
Posted

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?

Guest N402KC
Posted

Allan, What version oh VMS Do you have isntalled? Did you import a backup of anthing? Let me know. Ive had this issue.

Posted

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';

  • Administrators
Posted

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?

Posted

We added a custom airport to the system and all flights for that airport are perfect inbound and outbound flights that is, and as far as PHP im an idiot hehehehe if someone could help with that php part would be great thanks.

Kind Regards

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...