AirportInfo returns truncated city


#1

[14:06:37] [INFO] [dku.utils] - KLAX
[14:06:37] [INFO] [dku.utils] - Los US

City name should be “Los Angeles”, not “Los”.

My code is:

list_of_airports = []
for airport in airports:
    print airport
    AirportInfo = {}
    try:
        AirportInfo = flightaware({'airport_code' : airport}, 'AirportInfo')[u'AirportInfoResult']
        print AirportInfo[u'city'], AirportInfo[u'country_code']
    except:
        AirportInfo['airport_code'] = airport
    #AirportInfo['iata'] = airport -- join later in DSS!
    AirportInfo[u'timestamp'] = time.time()
    wait()
    list_of_airports.append(AirportInfo)

#2

The problem also applies to other airports, for example Sao Paulo.


#3

Thank you for the info on this. I have created a ticket to our developers for them to look into the issue. It appears it is not providing anything after the space for cities that have a space in their name.


#4

It works correctly in FXML2 if you want to grab a key for FXML2, you can. FXML2 charges per query made instead of a flat monthly fee.


#5

But what about FXML3?
When will this be fixed?


#6

This should be fixed for FlightXML3 as of yesterday.


#7

Thanks, now (for Los Angeles) all right !