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
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
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?
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,
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’;
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?
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
Well guys think I got this issue taking care of thanks to the update, Thanks for all the help. All I had to do was re add all the flights, thank GOD I am using CSV hehehehe