New API Call - Flight Plans

Hey guys,

I’m adding a new feature to the public API: Flight Plans

Whenever a pilots updates their flight plan (starting monday), the flight plan info will be sent to the cache and you’ll be able to request it.

This means this things like those will be possible:

  • Advance notification of arrivals at airports
  • Job board for ATC based on the number of incoming airplanes at a specific airport
  • Other things I didn’t think of…

The specifications are below:

Call:
http://infinite-flight-public-api.cloudapp.net/v1/GetFlightPlans.aspx?apikey=&sessionid=

Data Format:

[DataContract]
public enum FlightPlanType
{
    [EnumMember]
    VFR,
    [EnumMember]
    IFR
}

[DataContract]
public class FlightPlanInfo
{
    [DataMember]
    public Guid EntityID { get; set; } // Pilot ID

    [DataMember]
    public string[] Waypoints { get; set; }

    [DataMember]
    public FlightPlanType FlightPlanType { get; set; }

    /// <summary>
    /// Filed Altitude in Feet
    /// </summary>
    [DataMember]
    public int Altitude { get; set; }

    /// <summary>
    /// Filed Airspeed in KTS
    /// </summary>
    [DataMember]
    public int Speed { get; set; }

    [DataMember]
    public string DepartureAirportCode { get; set; }

    [DataMember]
    public string DestinationAirportCode { get; set; }

    [DataMember]
    public TimeSpan EstimatedTimeEnroute { get; set; }

    [DataMember]
    public String Remarks { get; set; }

    [DataMember]
    public DateTime DepartureTime { get; set; }

    [DataMember]
    public string[] AlternateDestinations { get; set; }

    [DataMember]
    public TimeSpan FuelOnBoard { get; set; }

    [DataMember]
    public Guid FlightID { get; set; }

    [DataMember]
    public DateTime LastUpdate { get; set; }
}

Remarks

Most of the fields will be empty until we have official support in the app.

19 Likes

Nice improvement! Appreciate you’re putting time into this for other third party development.

Hope we get more interest in third party apps. I’ll try to put some effort in over the holidays.

2 Likes

Another awesome addition to the best Flight Sim for mobile. Hands Down.

7 Likes

Max Sez; Well done, again! Gotta stay ahead of the power curve!

6 Likes

Perfect. Was going to ask for this the other day :)

4 Likes

I like the last thing he said [quote=“matt, post:1, topic:16919”]
Other things I didn’t think of…
[/quote]

3 Likes

Wow. Can’t wait to use it.

You could change the autopilot according to the fps and make it follow the flight plan :D This would be an amazing feature for global flight since you could basically take off with your plane in the morning, go to school or work (maybe even check the parameters on your phone while the plane is flying on your iPad, especially its location) come back home take the iPad and land the plane at the arrival airport.

@carmalonso Carmichael, go to work!

2 Likes

awesome, thank-you 😎

Is that not what FLT DIR mode is for on the autopilot? Doesn’t have to though the internet.

Come over and do my exams this week, will ya?

4 Likes

Sure, what are they about?

Just updated the original post with more info. Now GET TO WORK! :D

5 Likes

It would be cool if there was a source somewhere with correspondence between waypoints and actual coordinates - would you be able to provide this?

Check here:

1 Like

It is in the Navigation Repository under the link Matt posted above ^^

This is the Developer category. If you don’t understand, move along, it’s not for you :)

6 Likes

Please keep all discussions on this thread about the original topic. No random questions about other things.

1 Like

Would it be possible to implement the height of the destination/departer Airport in the API? to calculate the height
over ground level. you could basically program a full autoflught then with a program just by setting your fpl and taking of.

Not with this, this is something for the Connect API.