Giter Club home page Giter Club logo

ogn-ddb's Introduction

ogn-ddb: OGN Devices DataBase

Offical server at http://ddb.glidernet.org.

Installation

This project uses the PHP template engine Twig, available via Composer.

  1. Download and install Composer

  2. Clone repository

    git clone https://github.com/glidernet/ogn-ddb
    
  3. Install all dependencies defined in composer.json (this will install Twig)

    cd ogn-ddb
    composer update
    

There is an installation guide to run a local development instance of the DDB with Vagrant.

API-Endpoints

/download

This returns a CSVish-File. Each value is quoted with ', Each line starting with # is a comment.

Field Possible Values
device_type ^[FIO]$
device_id ^[A-F0-9]{6}$
from_id ^[A-F0-9]{6}$
till_id ^[A-F0-9]{6}$
aircraft_model any string
registration any string
cn any string
tracked ^[YN]$
identified ^[YN]$
aircraft_type ^[1-6] (optional, with t flag)

Example:

#DEVICE_TYPE,DEVICE_ID,AIRCRAFT_MODEL,REGISTRATION,CN,TRACKED,IDENTIFIED
'F','0123BC','LS-4','X-0123','23','Y','Y'
'F','DEADBE','DR-400','X-EABC','','N','N'

URL parameters

parameter values default effect
t 0/1 0 show field aircraft_type if set to 1
j 0/1 0 forces JSON output when set to 1 (regardless of accept header)
device_id csv n/a select a comma separated list of device ID's
from_id id n/a select list of device ID's starting from this provided ID
till_id id n/a select list of device ID's until this provided ID
registration csv n/a select a comma separated list of registrations
cn csv n/a select a comma separated list of callsigns

/download/?j=1

This returns all devices of the DDB in JSON. The output validates against the ogn-ddb-schema-1.0.0.

/download/download-fln.php

This returns the device database in a flarmnet-compatible format.

ToDo

  • finish multi languages management
  • document accurate meaning of tracked and identified

ogn-ddb's People

Contributors

snip avatar dbursem avatar kerel-fs avatar cunimb avatar acasadoalonso avatar mkrupicka avatar mrandt avatar meisterschueler avatar gewesp avatar rocketman768 avatar ysurac avatar skizzofly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.