[RE-OPENED] GC Map Help Needed

Ha ha bbq last night = lots of drink and a cloudy mind this morning

Ha ha bbq last night = lots of drink and a cloudy mind this morning

ok. what abt the GC Map Code?

dude stop begging

hey mark you are not the only one livving in the cloud

bad thing today is the second BBQ dauthers school recitle

pff thats gonna be one bigg head i am gonna have at work

and just take your time on the code

You could try this it seems to be working on my test install but i dont have that many schedules on it,

<?php $params['s.enabled'] = 1;
$flights = SchedulesData::findSchedules($params);
$string = "";
foreach($flights as $flight){
   $string = $string.EGKK.'+-+'.$flight->arricao.',+';
} ?>
<img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br />
Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a>

Just change the first bit of the call to the airport you want in my case i changed to EGKK (line 5)

Ok i see whats its doing its bring all the airports not limiting to the departure filed, I will have another play about later but the url is too long, just look at the image url.

Ok head hurts now lol,

Try this

<?php 
$params['depicao'] = EGKK;
$flights = SchedulesData::findSchedules($params);
$string = "";
foreach($flights as $flight){
   $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
} 
?>
<img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br />
Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a>

Clearly this will being back all the schedules in your system just change the depicao to teh field you want to list.

2 Likes

working fine thanks m8

Ok head hurts now lol,

Try this

<?php $params['depicao'] = EGKK; $flights = SchedulesData::findSchedules($params); $string = ""; foreach($flights as $flight){ $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?>


Maps generated by the Great Circle Mapper - copyright © Karl L. Swartz

Clearly this will being back all the schedules in your system just change the depicao to teh field you want to list.

TOPIC SOLVED BY THE ABOVE GIVEN CODE THANKS TO MARK

1 Like

Hi guys,

I was wondering if i could squeeze in another question about this…

My map is gone after doing a flight from VHHX (Kai Tak) to VVNB (No Bai Vietnam).

Of course the map does not know the old airport kai tak :wink:

Is there a work around? Should i just name it VHHH? Or is there a solution available.

thanks in advance guys

Lucas

www.serious-airlines.com

<?php 
$params['depicao'] = OTBD;
$flights = SchedulesData::findSchedules($params);
$string = "";
foreach($flights as $flight){
   $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
} 
?>
<img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br />
Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a>

how can i add more than 1 depicao in this code?

thats a new one departing from 2 places at the same time

1 Like