vatplanner / dataformats-vatsim-public

library for parsing and processing publicly accessible VATSIM data formats
MIT License
1 stars 0 forks source link

support parsing JSON data files #5

Closed dneuge closed 3 years ago

dneuge commented 4 years ago

There is a "hidden" (unadvertised) JSON format for data files when .txt is changed to .json: https://forums.vatsim.net/viewtopic.php?f=68&t=80023

Interpreting forum posts, it seems those JSON files might be generated by an independent implementation. It may be possible to get more useful data from JSON in some cases (e.g. it might be possible to distinguish midnight UTC from "no input" on time fields).

dneuge commented 4 years ago

JSON is now official and in production: https://forums.vatsim.net/topic/26920-new-vatsim-dataserver/

dneuge commented 3 years ago

TechBlog Q4/2020 states:

Retirement Notice - Txt Data File and JSON v1 These versions of the data will be retired on, or closely following January 1st of 2021, subject to communication with other solutions. We highly encourage all users of the old text file to migrate to the new JSON feed which can be found in more detail above.

... so support for the new format is needed until the end of this year. The TechBlog also states that version 3 is current:

The structure for this new format can be viewed at https://api.vatsim.dev/#operation/DataServerV3 The file is retrievable at https://data.vatsim.net/v3/vatsim-data.json

dneuge commented 3 years ago

Deadline was extended until 1 March 2021.

Network information file seems to be still in use, there are new keys json0 and json3. Discussion whether network information needs to be used or avoided: https://forums.vatsim.net/topic/29914-datafeed-urls/

dneuge commented 3 years ago

Will be implemented on feature branch feature_json.

dneuge commented 3 years ago

Parsing itself is implemented but there are multiple follow-up issues; see milestone.