This project offers a REST API to get information on:
- Airports
- Navaid
It currently relies on https://www.github.com/davidmegginson/ourairports-data . Data is refreshed every 24h.
There is no garantee that the provided data is in any way conform to the latest AIRAC cycle.
This data MUST NOT be used to plan real life flights.
- HOST : host the http server is listening to. Default is 127.0.0.1
- PORT : port the http server is listening to. Default is 8080
- TOKEN_LIST : a comma separated list of accepted connexion tokens for security purpose. Token muse be provided as
navaid_auth_token
. If not set, token verification is bypassed - DATABASE_PATH : the path to SQLite database. Defaut is
:memory
, which means not persistent
GET /airport?search={query}
: look for an airport based onquery
string. Answer first 100 resultsGET /airport/{icao}
: look for an airport based on its ICAO codeGET /navaid?search={query}
: look for a navaid (VOR, DME, ADF...) based onquery
string. Answer first 100 resultsGET /navaid/{icao}
: look for an navaid based on its ICAO code
Config files must be given for docker as /config/config.yaml
.
Format is:
http:
host: 127.0.0.1
port: 8080
security:
auth_tokens:
- aaaa
- bbbb
- cccc
database:
backend : MONGODB # can be either SQLITE or MONGODB
path : mongodb://localhost:27017 # Mongo URI if mongo (mandatory. Path to sqlite file if sqlite. If sqlite and no path, memory is used