WA101-ALLAN Posted March 19, 2010 Report Posted March 19, 2010 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 Quote
Administrators simpilot Posted March 19, 2010 Administrators Report Posted March 19, 2010 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? Quote
WA101-ALLAN Posted March 19, 2010 Author Report Posted March 19, 2010 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, Quote
Guest N402KC Posted March 19, 2010 Report Posted March 19, 2010 Allan, What version oh VMS Do you have isntalled? Did you import a backup of anthing? Let me know. Ive had this issue. Quote
hjhjhgjgjh Posted March 19, 2010 Report Posted March 19, 2010 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'; Quote
Administrators simpilot Posted March 19, 2010 Administrators Report Posted March 19, 2010 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? Quote
WA101-ALLAN Posted March 19, 2010 Author Report Posted March 19, 2010 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 Quote
WA101-ALLAN Posted March 19, 2010 Author Report Posted March 19, 2010 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.