Jump to content

[SOLVED] Bad distance calculation from PIREP's data


Recommended Posts

Posted (edited)

Hi guys,

I've just installed phpVMS 2, added one new airport HUB (in addition of the default KJFK), and 2 scheduled flights (from and to the new airport).
The new airport is LFMT, the 2 new schduled flights are LFMT to EIDW and EIDW to LFMT.

I've flown these 2 scheduled flights with Xplane and xacars. All was fine. But when the PIREP was validated, the miles flown remains to 0 as my to flights have respectively 782 and 771nm (so a total of 1553nm). So in the maintenance page, I've ran the "Recalculate distances", and now the 2 PIREP's has 2627.91 nm for the distance and the total miles flown to 5256nm !

So I've noticed that the phpvms_navdata table is empty, but was populated with the navdata.sql file in the install folder and doesn't change anything !

In addition, all the cache were cleared !


But the total miles flown remains wrong ! So how to fix this issue ?
Thanks a lot,

Alain

Edited by elekaj34
Solved
  • Moderators
Posted

It does not have to do with the navdata table. Have you added the airports (LFMT, EIDW) into your database? Admin Center -> Airline Operations -> Add & Edit Airports?

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