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