Thank you for clarifying that.
The reason I was using
GetHistoricalTrack is that we were planning on using the
last waypoint data for a given flight so we could plot these on a map. In addition we were going to overlay the waypoints from the
current airborne flight (if there is one at the time the request is made) on top of this. - ie to show the "last route" or "last vs current"
In fact this is very similar to the tracking I can see on your website - for example using your tracking of ident
VIR20 using your website tracking -
http://flightaware.com/live/flight/VIR20 I can see you're plotting a solid green line and a dotted blue line representing the flight route. I've tried using various methods to retrieve enough data to reproduce an equivalent of that map (for the same ident) but I just can't seem to get any data back. For example
GetLastTrack should return the active flight or last flight
Code:
http://flightxml.flightaware.com/json/FlightXML2/GetLastTrack?ident=VIR20
returns
{"error":"no data available"}
So I grabbed and stored the
faFlightIds from
FlightInfoEx -
http://flightxml.flightaware.com/json/F ... 0&offset=0Then using only those returned
faFlightIDs where the flight has an
actualArrivalTime...
- all calls to GetHistoricalTrack return no data - eg.
Code:
http://flightxml.flightaware.com/json/FlightXML2/GetHistoricalTrack?faFlightID=VIR20-1338096548-airline-0017
returns
{"error":"no data available"}
- all calls to DecodeFlightRoute return no data - eg.
Code:
http://flightxml.flightaware.com/json/FlightXML2/DecodeFlightRoute?faFlightID=VIR20-1337837314-airline-0017
returns
{"error":"unable to decode"}
What methods would you recommend I use to provide me with enough data to produce an equivalent of your tracking map?