Hi everyone,
I am currently in the proccess of creating a new flight map that looks cleaner and nicer than the google one. It even automatically resizes just to show the routes that have been flown. To use it, I need to find a way to make a list of DEPICAO-ARRICAO,DEPICAO-ARRICAO,DEPICAO-ARRICAO,DEPICAO-ARRICAO.
Example: KTPA-KMCO,KMCO-KMHT,KMHT-KMDW,KMDW-KLAS
Then, I need to insert that info into an image tag.
Example: <img src="http://www.gcmap.com/map?P=KTPA-KMCO,KMCO-KMHT,KMHT-KMDW,KMDW-KLAS&PM=pemr%3Adiamond7%2B%25U&MS=bm&DU=mi" border="0" title="Flight Map" alt="Flight Map" />
How can I go about calling up the info, putting in the KMCO-KTPA,KTPA-KMHT... format, and then inserting it into the image tag?
I've tried this so far, but it's failed miserably. I'm terrible with PHP.
<?php
$pilots = PIREPData::getAllReportsForPilot($pilotid);
foreach($pilots as $pilot)
{
print_r($pilot);
}
?>
Thanks for all of your help,
Carl K.
CEO of SWAVA.net