Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 8910713 May 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
chromedriver first commit May 3, 2019
database fully inserted db for route and flight May 5, 2019
rawdata
test add test for db May 14, 2019
.travis.yml
README.md Update README.md May 21, 2019
db.py updated db May 5, 2019
dockerfile updated db May 5, 2019
planeTypeAPI.py add official flightwareAPI and load AREP data May 16, 2019
requirements.txt add travis, flightaware api, test, requirement.txt May 13, 2019

README.md

Master: Build Status Develop branch: Build Status

aircraft_metadata_api

ESoWC 2019 - Obtaining online aircraft metadata.

Team: @michiboo

Mentor: @BruceIngleby, @MohamedDahoui

Summary

The aim of this project is to obtain aircraft metadata for AMDAR data.

To do

  • Create API for flightaware
  • Create API for flightradar24
  • Create API for 1+ more site
  • Create table for airport (number of records: 5958)
  • Create table for flight routes (number of records: 1022545)
  • Finish Readme
  • Mapping out flight path? (maybe)
  • Optimize
  • Documentation
  • Clean code
  • Use official API of flightaware?

quick start

It have to use a specific version of chrome, in this case it use version 74, if your chrome version is differnt. Visit http://chromedriver.chromium.org/downloads to download corresponding chromedriver and put it in chromedriver folder.

To use the script in other directory, run the command below:

export PYTHONPATH=${PYTHONPATH}:${pwd}

To add it permanently to python path: open file ~/.bashrc add the line below: export PYTHONPATH=/home/my_user/code

To retrieve routes and plane type:

from planeTypeAPI import api
a = api()
flightID =  a._getTypeByID('CX19',option=1) # option 1 - flightaware , 0 - flightradar24
routes = a.getRoutebyAware('PDX','SEA') # get routes from flightaware
routestat = a.getRouteByStat('PDX','SEA', 20190510192005) # get routes from flightstats

Acknowledgments

Thank you @jwagemann for organize ESOWC event!

You can’t perform that action at this time.