flightInfo returns different origin/destination types


#1

Hi,

I am using the FlightInfo API Request.

The problem is that it returns different types of Origin/Destination. I set my system to use the airport code. But now I found out that it also returns a GPS position instead of airport code:
Example:

Flight GWI5048


array(
        (int) 0 => object(stdClass) {
               ident => 'GWI5048'
               origin => 'EDDH'
               destination => 'L 45.39738 22.92677'
               originName => 'Hamburg'
               originCity => 'Hamburg'
               destinationName => 'Belgrade'
               destinationCity => 'Belgrade'
        },
        (int) 1 => object(stdClass) {
               ident => 'GWI5048'
               origin => 'L 53.59923 9.92348'
               destination => 'L 45.48949 23.08365' <-- ???
               originName => 'Hamburg'
               originCity => 'Hamburg'
               destinationName => 'Belgrade'
               destinationCity => 'Belgrade'
        }
)

Flight DAL410:


array(
        (int) 0 => object(stdClass) {
               ident => 'DAL410'
               origin => 'KJFK'
               destination => 'EDDF'
        },
        (int) 1 => object(stdClass) {
               ident => 'DAL410'
               origin => 'KJFK'
               destination => 'EDDF'
        },

(output shortened)

Is this an error? I need the airport code and not a GPS location. Can you please make this more constinstent? I mean add a new property like “origin_gps” , “destination_gps” but not mix it together with the actual airport code. Or is it because you got the information from the airline? (Germanwings)

Thanks


#2

Most flights that we track transmit actual flight plan information to us, however with some flights we do not have a flight plan (“position-only” flights) and do not know the actual origin or destination airport codes. For those flights we indicate the position where we first or last detected the aircraft, and that is what you are seeing. In some of those position-only flights, we can determine that the position is close enough to an airport’s location and will instead list the airport code, but that is not always possible.