I need help with the GC Map.
Can some1 give me the code on how to display the GC Map to show all my routes?
I need help with the GC Map.
Can some1 give me the code on how to display the GC Map to show all my routes?
Pretty sure what you want is in there
Pretty sure what you want is in there
No sadly not. I want to display all my routes i mean the destinations which my VA flies to..
i wanna show this as it was shown here
Jeff there is a limit to the amount of routes you can show, i dont think you can show them all. Mind you sating that my ops guy has managed to get all flights from a hub displayed so maybe its possible,
in the topic
In that case, this should work:
<?php $params['s.enabled'] = 1;
$flights = SchedulesData::findSchedules($params);
$string = "";
foreach($flights as $flight){
$string = $string.$flight->dep.'+-+'.$flight->arr.',+';
} ?>
<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>
(Not tested)
i"ll give it a try now
not working!
this is what i get check it on my website under the heading Our Routes
Hmm… ok try this
<?php $params['s.enabled'] = 1;
$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>
Hmm… ok try this
<?php $params['s.enabled'] = 1; $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
i think u gave me the same code same error!
No the new code is correct. It doesn’t work because you’re trying to use an airport that doesn’t exist:
VGHS: location error 0 (undefined code)
NO i am not.
p.s some1 give me a tested code
Ok, if you insist, of course you’re not. I was telling you what the error was from the gcmap site, but obviously it was wrong. You try and solve it alone then
Ok, if you insist, of course you’re not. I was telling you what the error was from the gcmap site, but obviously it was wrong. You try and solve it alone then
well i tried to do something now it started displaying the image but not the routes. blank map
good luck fixing it alone.
Tom is trying to help you and you say his imput is not needed way to go here.
now for Tom would it also be possible to show the routes from 1 airport
good luck fixing it alone.
Tom is trying to help you and you say his imput is not needed way to go here.
now for Tom would it also be possible to show the routes from 1 airport
I am never saying that i will fix it alone i need help and i dont say that TOM is not trying to help me. ACTUALLY the code is not working may be because of ICAO code missing from GC Maps?
Not tested but add your departure here
$string = “”;
can u give me a complete example code ?
Mark thats not working then its not putting up the map
Let me have a play for 5 minutes or so. Coffee required first
Let me have a play for 5 minutes or so. Coffee required first
awaiting.