Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
/ plane-identifier Public archive

Identify a plane based upon its caracteristics on the runway - Project for the Prague Hackaton

Notifications You must be signed in to change notification settings

aabizri/plane-identifier

Repository files navigation

plane-identifier is a web service accessible via a REST API for identifying a plane based upon measurements

Current version: v0.0

This project was developped for the 2017 Prague Hackaton.

Built by Alexandre A. Bizri, Marin Godechot & Camille Marchetti (Team K-1000).

Licensed under UNLICENSE

Building the server

In the directory: go build

## Launching it ./plane-identifier

Flags:

  • -p allows you to select the port to listen to (ex: -p 8080)
  • -logpath is the directory in which to log requests (ex: -logpath /tmp/plane)
  • -path is the path to listen to (ex: -path /task2/input)

Calling without flags is equivalent to using -p 8080 -logpath "/tmp/" -path "/"

Sample input

{
  "measurements" : [
    {
      "type" : "A380",
      "noise-level": 103,
      "brake-distance": 2130,
      "vibrations": 0.81
    },{
      "type" : "A380",
      "noise-level": 101,
      "brake-distance": 2070,
      "vibrations": 0.88
    },{
      "type" : "737",
      "noise-level": 94,
      "brake-distance": 1730,
      "vibrations": 0.82
    },{
      "type" : "737",
      "noise-level": 96,
      "brake-distance": 1820,
      "vibrations": 0.79
    }
  ],
  "samples" : [
    {
      "id" : 1,
      "noise-level": 102,
      "brake-distance": 2105,
      "vibrations": 0.80
    },{
      "id" : 2,
      "noise-level": 97,
      "brake-distance": 1830,
      "vibrations": 0.80
    }
  ]
}

Sample output

{
    "result" : [
        {
            "id" : 1,
            "type" : "A380"
        },{
            "id" : 2,
            "type" : "737"
        }
    ]
}

About

Identify a plane based upon its caracteristics on the runway - Project for the Prague Hackaton

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages