Jump to content

How to populate route_detais in phpvms_acarsdata table


Ademar Andrade

Recommended Posts

This should be in the support forum or development forum

I don't suppose so...

"Support Forum

Any questions or bug reports go here.

Development Help

For help and support for the development of addons

I'm not with bug or developing an addon...

I need a pice of code to populate a table...

Please, If you can't help don't aswer...let the admn do this kind of observantion, because they can move this topic if necessary.

Link to comment
Share on other sites

I don't suppose so...

"Support Forum

Any questions or bug reports go here.

Development Help

For help and support for the development of addons

I'm not with bug or developing an addon...

I need a pice of code to populate a table...

Please, If you can't help don't aswer...let the admn do this kind of observantion, because they can move this topic if necessary.

Look through the Code Snipets forum. And see how many requests there are. And how many developers with pre-developed code... :P

Link to comment
Share on other sites

Ademar

Have you this in ACARS.php module

public function data()
{
$flights = ACARSData::GetACARSData();
if(!$flights)
$flights = array();
$this->acarsflights = array();
foreach($flights as $flight) {
if($flight->route == '') {
$flight->route_details = array();
} else {
# Jeff's fix for ACARS
$params->deplat = $flight->deplat;
$params->deplng = $flight->deplng;
$params->route = $flight->route;
$flight->route_details = NavData::parseRoute($params);
//$flight->route_details = NavData::parseRouteACARS($params);
}

Link to comment
Share on other sites

Ademar

Have you this in ACARS.php module

public function data()
{
$flights = ACARSData::GetACARSData();
if(!$flights)
$flights = array();
$this->acarsflights = array();
foreach($flights as $flight) {
if($flight->route == '') {
$flight->route_details = array();
} else {
# Jeff's fix for ACARS
$params->deplat = $flight->deplat;
$params->deplng = $flight->deplng;
$params->route = $flight->route;
$flight->route_details = NavData::parseRoute($params);
//$flight->route_details = NavData::parseRouteACARS($params);
}

Hi FX30HD,

Thanks for your attention,

i changed ACARMAP.PHP teh code you said. But still not working...

Any another idea?

Thanks,

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