Website for storing flight information, rendering paths on a zoomable world map and calculating statistics, with plenty of free airline, airport and route data.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 53fd242 Jun 16, 2018
Permalink
Failed to load latest commit information.
apache2 Add a local testing config May 9, 2018
badge Render badge with anti-aliased font. Remove extra space between days … Mar 3, 2012
contrib/openflights_to_email Initial commit of a script to read personal flight data from openflig… May 7, 2011
css TripIt: Better handle trips with no flight segments. Jun 20, 2012
data Remove no longer functional timezone gathering script Jun 15, 2018
demo Add samples of new maps Jun 21, 2015
elite Centralize config for bash scripts using Cloud SQL Apr 12, 2016
help Bugfix: Use correct UTF-8 byte order mark in CSV exports Nov 7, 2010
html More HTTPS tweaking May 4, 2017
img Remove long-obsolete Kayak affiliate link Aug 24, 2015
js Filter out invalid codes Aug 27, 2015
kml * Segments by train, road or sea added (2509953) Mar 26, 2009
locale Update messages.po Dec 8, 2015
php Use $_SERVER instead of getenv() Jun 15, 2018
sql Add plane (aircraft) data export May 16, 2018
test Refactor test suite to use PDO Jun 15, 2018
widget Clone HTTPS urls, not Git Jun 18, 2015
.gitignore Move airport edits to Github issue tracker Jul 20, 2015
CHANGES Replace pointers to SourceForge with GitHub Jun 18, 2015
CHANGES.OLD * OpenFlights Delta released! Jan 6, 2009
INSTALL Update INSTALL Feb 2, 2016
OpenLayers.js Update OpenLayers to 2.11. Fixes Android compatibility. Nov 20, 2011
README.md Update README Jul 1, 2015
about.html Update link to blog Feb 5, 2016
composer.json Update PHP test dependencies May 9, 2018
composer.lock Update PHP test dependencies May 9, 2018
data.html Now using UTF-8 across the board May 17, 2018
donate.php Show message if user is not logged in Nov 8, 2012
down.php Add site down page Feb 12, 2016
faq.html Replace pointers to SourceForge with GitHub Jun 18, 2015
index.php Migrate all resources to HTTPS May 4, 2017
openflights.css Rewrite autocompletion logic (#379) May 16, 2018
openflights.js Migrate all resources to HTTPS May 4, 2017
sidebar.html Move blog to its own domain Feb 5, 2016

README.md

OpenFlights

Welcome to the code base for OpenFlights, a tool that lets you map your flights around the world, search and filter them in all sorts of interesting ways, calculate statistics automatically, and share your flights and trips with friends and the entire world (if you wish).

Data

Most people come here for the free airport, airline and route data. See the documentation or plunge straight into the data itself.

User interface

See locale for supported languages and instructions for editing them or adding new ones.

Code

I'll be upfront: this codebase is an unholy mess. The bulk of it was written in 2008, back when PHP seemed like a good idea and the only way to learn JavaScript was the hard way. Any vestiges of sanity you may encounter (eg. unit and integration tests or package management) were grafted on as an incomplete afterthought.

Basically, though, it's your classic LAMP app. JavaScript frontend (mostly in the monolithic openflights.js, some bits under js) talking to an Apache/PHP backend (in php) that wraps around a MySQL database.

Tests

Test coverage is woefully incomplete, but comes in three flavors:

  • client: Client-side full-stack integration tests, require live DB & server
  • server: Server-side (PHP) integration tests, require a live database
  • unit: Client-side JavaScript unit tests

Installation

See INSTALL for system requirements and instructions.