STARs Posted October 22, 2013 Report Posted October 22, 2013 Hello, Please guide me how can I just display the city name in live flight departure board. I want that i just display the departure city and arrival city instead of departure airport and arrival city. Thanks in advance. Quote
freshJet Posted October 22, 2013 Report Posted October 22, 2013 Hello, Please guide me how can I just display the city name in live flight departure board. I want that i just display the departure city and arrival city instead of departure airport and arrival city. Thanks in advance. Quote
Zach Posted October 22, 2013 Report Posted October 22, 2013 The closest thing you can get to the city, is the airport! You can try the showing the country as well!? To show the city name, you would have to edit the phpvms_airports table and insert the data for all the airports, as well as make some changes to the files in the common and modules folders on your site. Quote
freshJet Posted October 22, 2013 Report Posted October 22, 2013 Oh, OK, I read it wrong! $depinfo = OperationsData::getAirportInfo($flight->depicao); $arrinfo = OperationsData::getAirportInfo($flight->arricao); And then, where you want them displayed: <?php echo $depinfo->name;?> <?php echo $arrinfo->name;?> Quote
STARs Posted October 27, 2013 Author Report Posted October 27, 2013 Itrobb I'm looking to get cities not icaos Quote
freshJet Posted October 27, 2013 Report Posted October 27, 2013 Itrobb I'm looking to get cities not icaos Did you even try my code? Quote
Zach Posted October 28, 2013 Report Posted October 28, 2013 @itrobb You code gives him the Airport Name doesn't it? I think he wants the actual name of the city, of the airport. E.G KLAX - Los Angeles (Not Los Angeles international airport", EGLL - London (not Heathrow International airport") @stars As i said, if you want to do this, you would need to do a lot of modification to the airports table. The closest thing you can do, is what itrobb said; that is, the airport names! Quote
freshJet Posted October 28, 2013 Report Posted October 28, 2013 I see. It would only need a little modification, just add the column and then edit the appropriate functions in OperationsData.class.php. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.