To determine a national carrier, I would hit the flightInfo method with the national carrier ICAO code, plus the flight number and see if I got a hit. This works on the web site… Hit the URL flightaware.com/live/flight/CJC4833. This is great cause now I know this CJC flight is for US Airways.
I have a unit test that now is failing:
it “should be able to figure out national carrier from ident” do
@flight.ident = “CJC4833”
@flight.carrier.should == "US Airways"
The flightInfo method when I pass in USA4833 no longer returns results. Can someone look into why this changed on the API, but still works on the site? I don’t want to just screen scrape directly against the website…