Add flight route map; algorithm for picking from multiple nav points; some tests
This commit is contained in:
@@ -25,6 +25,7 @@ class CreateNavdataTables extends Migration
|
||||
$table->float('lon', 7, 4)->default(0.0);
|
||||
$table->string('freq', 7)->nullable();
|
||||
|
||||
$table->primary(['id', 'name']);
|
||||
$table->index('id');
|
||||
$table->index('name');
|
||||
});
|
||||
|
||||
@@ -13,13 +13,9 @@ class CreateAcarsTables extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
/**
|
||||
* See for defs, modify/update based on this
|
||||
* https://github.com/skiselkov/openfmc/blob/master/airac.h
|
||||
*/
|
||||
Schema::create('acars', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('acars_id', 12);
|
||||
$table->string('pirep_id', 12);
|
||||
$table->string('name', 10)->nullable();
|
||||
$table->float('lat', 7, 4)->default(0.0);
|
||||
$table->float('lon', 7, 4)->default(0.0);
|
||||
@@ -29,8 +25,8 @@ class CreateAcarsTables extends Migration
|
||||
# polymorphic relation columns.
|
||||
# parent_type can be flight, pirep or acars
|
||||
# once
|
||||
$table->unsignedBigInteger('parent_id');
|
||||
$table->string('parent_type');
|
||||
#$table->unsignedBigInteger('parent_id');
|
||||
#$table->string('parent_type');
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ flights:
|
||||
flight_number: 100
|
||||
dpt_airport_id: KAUS
|
||||
arr_airport_id: KJFK
|
||||
route: KAUS KJFK
|
||||
route: KAUS SID TNV J87 IAH J2 LCH J22 MEI J239 ATL J52 AJFEB J14 BYJAC Q60 JAXSN J14 COLIN J61 HUBBS J55 SIE STAR KJFK
|
||||
dpt_time: 6PM CST
|
||||
arr_time: 11PM EST
|
||||
- id: flightid_2
|
||||
|
||||
Reference in New Issue
Block a user