Flight Historian 2.2
Regions and Flight Lookups
Previously, Flight Historian had offered the ability to show maps with all worldwide flights, or to zoom in to the contiguous United States (CONUS). This had been accomplished by giving all airports an
is_conus parameter in the database, which was set to true if the airport was CONUS.
While the majority of my travel was within the US, I’d taken a few trips to other parts of the world, and I wanted to add the ability to zoom in on other regions. I ended up figuring out that I could use airport ICAO codes to identify airports’ regions. Now, Flight Historian has the ability to filter by World, USA (CONUS), Europe, and Oceania. If I need to add a region in the future, it’s as easy as adding a single line of code with the name of the region and an array of ICAO prefixes.
While my digital boarding pass import release has been immensely successful in saving me time adding flights, it’s not always possible to get a digital boarding pass. Flights that require a seat assignment at the gate, international codeshares, and other sorts of flights can all require a paper boarding pass, which I was unable to import.
However, paper boarding passes still have a PDF417 barcode (which I could scan with a barcode reader app) containing some flight data, so I updated the flight log to support using this Bar Coded Boarding Pass (BCBP) data to pre-populate some new flight fields. Additionally, for situations where I didn’t even have a barcode available, I added the option to search for a flight by airline and flight number.
However, since the BCBP and flight numbers inherently don’t have as much data as the Apple digital boarding pass, I had to rely much more heavily on looking up information on FlightAware’s FlightXML API. I reworked the entire new flight process to essentially take as much information as it already knew, and use it to look up as much of the remaining information as possible:
While US tail numbers are purely letters and numbers (e.g. N909EV), many international tail numbers commonly have dashes in them (e.g., VH-OQI). Previously, I stored the tail number in the database with those dashes present. However, since the dashes are technically optional, I now store the tail numbers in the database with the dashes removed, and I wrote a function to add dashes to tail numbers based on the countries they’re from.
- Added ICAO codes to airports
- Added capability to filter maps by multiple regions
- Added New Flight by BCBP capability
- Added New Flight by Flight Number capability
- Removed Edit Flight with Pass capability
- Minor UI fixes
FlightXMLmodule for performing lookups on the FlightXML API
- Moved existing FlightXML lookups to new
Airportsmodel for region lookups, and removed
- Removed parameters related to updating existing flights with new PKPasses
- Switch to storing tail numbers with no dashes, and added a tail number formatting method to the
- Minor bug fixes