Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
May 23, 2019
May 1, 2020
img
Aug 5, 2019
Feb 2, 2016
Jul 1, 2015

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.

About

Website for storing flight information, rendering paths on a zoomable world map and calculating statistics, with plenty of free airline, airport and route data.

Resources

Releases

No releases published
You can’t perform that action at this time.