API Updates - November 2023

Hey @api!

Based on feedback from the Trello and Discord, we’ve pushed a series of improvements to the Live API.

Changelog

  • New: Get 3D Airports endpoint
    This will return a list of all 3D airports and their metadata

  • New: Get Airport Information
    Returns metadata for an airport, including location, elevation and whether the airport has jetbridges or other scenery editing features.

  • Updated: Get Sessions
    Added a new WorldType field (indicates if the server is Casual/Training/Expert), and the minimum grade level required for the server.

  • Updated: User Flights
    This endpoint now features a new WorldType field (indicates if the server is Casual/Training/Expert), and a list of violations received during a specific flight.

  • Updated: User ATC Sessions
    This endpoint now features the name of the server the session was opened on, a new WorldType field (indicates if the server is Casual/Training/Expert), and a count of the violations issued.

  • Updated: Get Airport Status & Get World Status
    This now shows the airport name for each status.

A note about determining session/server types

In the past, we suggested using the Session ID to determine if a server is Expert/Training/Casual. However, this Session ID or the Server Name could change at any time.

We have now added a new enum called WorldType which indicates the type of server for you.

public enum WorldType
{
    Solo = 0,
    Casual = 1,
    Training = 2,
    Expert = 3,
    Private = 4 // i.e. for IFATC or other servers.
}

We recommend using this enum going forward if you need to determine the type of the session.

Feedback

If you have any questions or suggestions for the API, we suggest putting them in the API Trello

https://community.infiniteflight.com/t/api-trello-board/416229/2

24 Likes