API Use with JSON encoded data

Here are all the URL requests and data references

Content: [api]
[version]

Get api version

[provider]

Get api provider

[web]

Get DNS website

[service]

Get api service description

va_data.php

Content: [va_setting]
[network]
(array of Boolean)



-> [ivao]

This gets if we accept IVAO network

-> [vatsim]

This gets if we accept VATSIM network




[globals]
(array)



-> [time]

This gets our date format




Content: [stats]
[hours]

Get total flight HOURS (in hours only)

[distanceNM]

Get total distance in NM unit

[c_pilots]

Get total count of active pilots

[c_flights]

Get total count of flights did

[c_routes]

Get total count of flight routes available

Content: [info]
[name]

Get full VA name

[short_name]

Get shorted VA name

[small_name]

Get small VA name

[description]

Get VA's description


[images]
(array)



-> [ico]

This gets our VA's favicon link

-> [ivao_certif_60x40]

This gets 60x40 VA's image link

-> [ivao_certif_85x18]

This gets 85x18 VA's image link

-> [ivao_certif_450x150]

This gets 450x150 VA's image link



flights.php

Content: [live]
[output]

This gets reason why no live flights are found




[globals]
(array)



-> [time]

This gets our date format




Content: [stats]
[count_live_flights]

Get live flights count

[count_sent_flights]

Get total flights (no live flights)

Content: [total]
[ (COUNTER) ]
(starts at 0, array)



-> [user]

This gets user's informations of the flight ( [name] and [callsign] )

-> [from]

This gets from airport infos ( [icao] and [name] and [c_iso] )

-> [to]

This gets destination airport info ( [icao] and [name] and [c_iso] )

-> [timestamp]

This gets time and date info ( [date] and [datetime] )

-> [info]

This gets flight type and duration ( [flight] and [duration] )




Next