Jump to content

Displaying total distance in Acars Map? [SOLVED]


James142

Recommended Posts

  • Moderators

Try this, put it in your acars info table in acarsmap.tpl.

I'm not sure which one you want. you said flight time or distance remaining?

<%=flight.disremaining%>
<%=flight.timeremaning%>

EDIT Nevermind.

I'm not sure what's the code for it. sorry.

Link to comment
Share on other sites

Try this, put it in your acars info table in acarsmap.tpl.

I'm not sure which one you want. you said flight time or distance remaining?

<%=flight.disremaining%>
<%=flight.timeremaning%>

Thanks, but they are showing how long is left? Is it possible to show how long the flight that a pilot is flying?

For example:

Pilot john is flying flight no VMS001 which is EIDW - EGLL and a total distance of 243nm

In the acars map I want it to show that his flight is 243nm long..

Link to comment
Share on other sites

  • 4 weeks later...

Better late than never! :D

To view the total distance of the flight the pilot add:

$c['totaldistance'] = OperationsData::getAirportDistance($c['depicao'], $c['arricao']);

This file in core / modules / ACARS.php

To view when he flown add:

$depapt = OperationsData::GetAirportInfo($c['depicao']);
$arrapt = OperationsData::GetAirportInfo($c['arricao']);
$c['distflown'] = round(SchedulesData::distanceBetweenPoints($c['lat'], $c['lng'], $depapt->lat, $depapt->lng));

This is the core / modules / ACARS.php

To use indicate the total miles use this:

<%=flight.totaldistance%>

To show how many miles the pilot flown use this:

<%=flight.distflown%>

On your tpl "acarsmap.tpl"

Any questions just ask me, I'm an expert in editing acarsmap :D

I am bad English ... :(

Thumbs up on me! :)

  • Like 1
Link to comment
Share on other sites

Better late than never! :D

To view the total distance of the flight the pilot add:

$c['totaldistance'] = OperationsData::getAirportDistance($c['depicao'], $c['arricao']);

This file in core / modules / ACARS.php

To view when he flown add:

$depapt = OperationsData::GetAirportInfo($c['depicao']);
$arrapt = OperationsData::GetAirportInfo($c['arricao']);
$c['distflown'] = round(SchedulesData::distanceBetweenPoints($c['lat'], $c['lng'], $depapt->lat, $depapt->lng));

This is the core / modules / ACARS.php

To use indicate the total miles use this:

<%=flight.totaldistance%>

To show how many miles the pilot flown use this:

<%=flight.distflown%>

On your tpl "acarsmap.tpl"

Any questions just ask me, I'm an expert in editing acarsmap :D

I am bad English ... :(

Thumbs up on me! :)

Thats great, thanks! +1

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