Skip to content

Instantly share code, notes, and snippets.

@nicholaswmin
Last active March 21, 2018 17:50
Show Gist options
  • Save nicholaswmin/156cfb2c60e7156077a341a7a72b5d1b to your computer and use it in GitHub Desktop.
Save nicholaswmin/156cfb2c60e7156077a341a7a72b5d1b to your computer and use it in GitHub Desktop.
Parking Simulator Aircraft Movements
{
aircraft: [
// aircraft 1
{
id: 'LK-122', // registration number
item: sampleAircraftSVG, // aircraft SVG
// list of movements
movements: [
// movement 1
{
startTime: 10,
startPosition: 'A1',
endPosition: 'A2'
},
// movement 2
{
startTime: 200,
startPosition: 'A2',
endPosition: 'A3'
},
// movement 3
{
startTime: 500,
startPosition: 'A3',
endPosition: 'A4'
}
]
},
// aircraft 2
{
id: 'RD-992',
item: sampleAircraftSVG,
movements: [
{
startTime: 1,
startPosition: 'B1',
endPosition: 'B2'
},
{
startTime: 200,
startPosition: 'B2',
endPosition: 'B3'
}
]
},
{
id: 'JX-882',
item: sampleAircraftSVG,
staticPosition: 'C1',
movements: [
{
startTime: 10,
startPosition: 'C1',
endPosition: 'A4'
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment