There is an issue with the structure of the JSON file.
Problem:
Right now, 1 flight => 1 item in the flights array. This is good, whats's wrong is the syntax. Because we have a dot in the name, Javascript thinks the .lat for example is a property of the departure/arrival object. There is a workaround for this, but it's quite ugly and not clean code.
Current:
There is an issue with the structure of the JSON file.
Problem: Right now, 1 flight => 1 item in the flights array. This is good, whats's wrong is the syntax. Because we have a dot in the name, Javascript thinks the .lat for example is a property of the departure/arrival object. There is a workaround for this, but it's quite ugly and not clean code. Current:
What we want:
Eventually we want to add A LOT more data.
Also, make the id start at 0 :sweat_smile: