Export JSON format instead of txt
Closed this issue · 2 comments
rpuig2001 commented
Similar to the following:
{
"<airportICAO>": {
"callsign": "RYR24X",
"data": {
"tobt": 173000,
"tsat": 174000,
"ttot": 180000,
"ctot": 1800,
"flowRestriction": flowRestriction,
}
}
}
kusterjs commented
proposal would be to allow a GET/POST request to the webserver infrastructure of CDM (so no separate web server required) with the airport as the parameter. This would enable an easy integration on websites etc. If necessary, access could be restricted by an additional requirement of a key.
rpuig2001 commented
https://cdm.vatsimspain.es/CDMdataExport.php connected to the extracted file in Vatsim Spain FTP Server.
PARAMETERS:
airport
-> ICAO airport. [MUST BE SET - UPPERCASE] (https://cdm.vatsimspain.es/CDMdataExport.php?airport=LEBL)
callsign
-> specific plane's callsign [OPTIONAL - UPPERCASE] (https://cdm.vatsimspain.es/CDMdataExport.php?airport=LEBL&callsign=VLG11P).
RETURNS:
[
{
"callsign": "RYR33P",
"tobt": "200000",
"tsat": "200000",
"ttot": "201000",
"ctot": "",
"flowRestriction": ""
},
{
"callsign": "RYR22GV",
"tobt": "200000",
"tsat": "200300",
"ttot": "201200",
"ctot": "",
"flowRestriction": ""
},
{
"callsign": "RYR42TQ",
"tobt": "220000",
"tsat": "220000",
"ttot": "221100",
"ctot": "",
"flowRestriction": ""
}
]