Flight Planning is the most common use of LMFS Web Services. The current offering provides the following capabilities:
LMFS Web Services offering allows developers to file the FAA domestic flight plan form or the ICAO flight plan form for IFR and VFR flight plans. We also provide support for flights leaving and arriving in the United States (International to International flights are not supported). Some aspects to know about our system that will help you get a better understanding of how things work and put you in a better position to answer questions from your users:
An example of a flight plan and the expected response:
$ /usr/bin/curl -k -A "Mozilla/5.0" -i -c cookies/cookies. --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "type=DOMESTIC&webUserName=me%40letmein.com&flightRules=VFR&aircraftIdentifier=MESSN&departure=HOU&destination=MIA&departureInstant=2015-03-04T14:48:00.0&flightDuration=PT1H30M&route=LEV%20Q102%20CYY%20SSCOT&altDestination1=LAX&altDestination2=SEA&aircraftType=P28A&numberOfAircraft=3&heavyWakeTurbulence=true&aircraftEquipment=G&remarks=This%20is%20a%20domestic%20flight%20plan%20test&speedKnots=100&altitudeFL=35&fuelOnBoard=PT20H0M&pilotData=PILOT%20INFO&peopleOnBoard=1&aircraftColor=W" "http://www.elabs.testafss.net/Website2/rest/FP/file" -v {"versionStamp":"20150304024814280","flightIdentifier":"298351728_447141_1053","returnCodedMessage":[],"returnMessage":[],"returnStatus":true} |
Important items to note in the response:
versionStamp - VersionStamp is the version of the flight plan that is retained in our system. Whenever you do anything to modify the flight plan, you need to operate on the latest version of the time stamp. Your best bet is to pull the latest version of the flight plan (which will have the most recent version stamp) by making a retrieveFlightPlan request.
flightIdentifier - This is the unique identifier for every flight plan that is created in the system. It is used on other web service calls that fetch data based on a specific flight plan. (such as retrieveFlightPlan, retrieveAlertByFlightId, acknowledgeAlert). This value does not change. You should retain this information on your side so you have a reference to it in the future, particularly if you are using anonymous filing.
Below is an example of amending a flight plan, using the example above as the initial file. Note that the versionStamp is modified.
$ /usr/bin/curl -k -A "Mozilla/5.0" -i -c cookies/cookies. --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "type=DOMESTIC&versionStamp=20150304024814280&webUserName=me%40letmein.com&flightRules=IFR&aircraftIdentifier=MESSN&departure=HOU&destination=MIA&departureInstant=2015-03-04T14:48:00.0&flightDuration=PT1H20M&route=&altDestination1=&altDestination2=&aircraftType=L18&numberOfAircraft=&aircraftEquipment=X&remarks=&speedKnots=150&altitudeFL=45&fuelOnBoard=PT21H0M&pilotData=JOE%20COOL&peopleOnBoard=2&aircraftColor=B" "http://www.elabs.testafss.net/Website2/rest/FP/file" -v {"versionStamp":"20150304024817490","returnCodedMessage":[],"returnMessage":[],"returnStatus":true} |
Activating is used for activating VFR flight plans. We do not support the activation of IFR flight plans. The flight plan must be in the PROPOSED state. (Meaning that it has been filed, hasn't been activated previously and hasn't been cancelled/closed)
$ /usr/bin/curl -k -A "Mozilla/5.0" -i -c cookies/cookies. --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "&actualDepartureInstant=2015-03-04T15:03:00.0&versionStamp=20150304024817490&includeCodedMessages=true""http://www.elabs.testafss.net/Website2/rest/FP/298351728_447141_1053/activate" -v {"versionStamp":"20150304030332170","returnCodedMessage":[],"returnMessage":[],"returnStatus":true} |