AlbertKovtoun / Aero-Viz

https://aero-viz.vercel.app
0 stars 0 forks source link

Modify flight-data.json #1

Closed AlbertKovtoun closed 2 months ago

AlbertKovtoun commented 2 months ago

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: image

What we want: image

Eventually we want to add A LOT more data.

Also, make the id start at 0 :sweat_smile:

LarsMoons commented 2 months ago

Both issues have been fixed. The id's now start at 0 and the json is properly formatted

[Uploading finalDataset.json…]()