GetLastTrackRequest - length of Input string FlightID


#1

HI,

 I ran a query SearchBirdseyeInFlightRequest and got the flight IDs in a Lat/Long rectangle.

 I got a reply like follows:

UAE530-1407217652-airline-0015
SEJ118-1407217944-airline-0337
AIC681-1407130314-airline-0150
IGO68-1407130249-airline-0015
SVA774-1407130573-airline-0400
AXM29-1407130314-airline-0287
AXM27-1407217492-airline-0124
AXM25-1407130314-airline-0285
QTR660-1407217939-airline-0009
SLK458-1407130509-airline-0163
SEJ3242-1407217944-airline-0471
IGO286-1407130249-airline-0223
AIC658-1407217491-airline-0229
SEJ451-1407130558-airline-0388
SEJ281-1407130558-airline-0298

From these result I extracted the Flight-IDs e.g. UAE530 or AXM25 above. With this data I ran the second query GetLastTrackRequest, once for each Flight ID. When the query was run with 5 digit (AXM27) and 7 digit (SEJ3242) Flight IDs, I got always exception.

Could someone please advise me, if I have to do something to these IDs to work it correct?

Thanks and with best regards,
Manish


#2

I don’t think the number of characters in the ident is relevant to the success/failure of those requests.

You should not attempt to split the faFlightID and extract the leading fragment from it to derive the ident. Although it generally works, that is not reliable and will fail in subtle ways, particularly for flights operating as codeshares of another airline.

If you already know the faFlightID of a flight and want to retrieve its track, then use GetHistoricalTrack instead of GetLastTrack.

Many of those flights you are requesting are in parts of the world where we lack positional tracking, so GetHistoricalTrack/GetLastTrack will not have any data for them and will fail. Overall flight status can still be queried on them by using FlightInfoEx with the faFlightID.