Ysurac / FlightAirMap

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
517 stars 157 forks source link

N callsign image #292

Closed roo2002 closed 7 years ago

roo2002 commented 7 years ago

Our map and images etc work great. The only issue I've found is if an Aircraft has a US N callsign/registration, the image of the aircraft is only displayed in the information page and not in the popup. Is there anything I can edit to correct this? I have emptied The IATA database so random Callsigns are not shown for a N reg aircraft.

Ysurac commented 7 years ago

Strange, same data are used for aircraft info and pages. Which IATA db ?

roo2002 commented 7 years ago

Airlines IATA. Do you think that may be the issue?

Http://roo.servebeer.com/jfs is the map. N1234 over Australia is the test aircraft.

Ysurac commented 7 years ago

You can try latest commit, else I will try to find the bug tomorrow.

roo2002 commented 7 years ago

I'll try the latest tomorrow. Thanks for the help.

roo2002 commented 7 years ago

Downloaded latest commit and installed on a fresh database. I've found that the N reg images show only if they are using iata in their callsign. So if I delete the iata info from the database the images won't show, but if I leave the iata info in the data base a random callsign is shown.

Ysurac commented 7 years ago

A registration seems to be used as callsign from your source, it's why airlines checking is not valid. You should set the $globalNoAirlines value to TRUE in require/settings.php (or the checkbox no airlines in the install/index.php). You should also set $globalVA to TRUE (or checkbox Virtual Airlines in install/index.php).

roo2002 commented 7 years ago

Still no joy with the above. But I solved the problem by replacing the iata callsign names for each N callsign.

Thanks for the help