• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS24 Fetching all waypoint/flight plan info?

Messages
3
Country
cyprus
Building an app (c#) to fetch waypoint info of the current mission I'm in. The goal is to host a site at localhost:port with a latitude js map on which I can draw all the points, and the plane position (similar to EFB), so I can monitor my overall flight progress without having the EFB open or at that specific view.

If I use SimConnect_RequestFacilitesList with SIMCONNECT_FACILITY_LIST_TYPE_WAYPOINT, I only get a few waypoints (cached I suppose?), which are not actually the ones from the flight plan. Is there another way of doing it?

As a temporary workaround I'm using the custom mission flight plan and flt files generated when the mission starts, parse the waypoint names and try to fetch their coordinates using skyvector.com API. This works ok mostly, but some waypoint names are used only by MSFS so obviously those wont return anything, so I have to connect the previous with the next etc.
 
There's a 200km limit to the reality bubble. Are you trying to retrieve info that is further away from the aircraft than 200km?
 
Indeed I probably am. I was under the impression waypoints wouldn't be part of the bubble, similar to airports but I guess they are.

So I suppose there's no other way using the sdk?
 
No. I do know that the reality bubble isn't a sudden cut-off at 200km as I wrote a P3D METAR decoder that is picking up weather stations at about 220km out.
 
Hello, you may find the following threads "interesting:"

<https://devsupport.flightsimulator.com/t/still-no-nav-api-working/12339>
<https://devsupport.flightsimulator.com/t/c-fs9gps-variables-not-working-on-msfs2024/10378>
<https://devsupport.flightsimulator.com/t/reading-sending-msfs-flight-plan/10545>

Note that there are (new/expanded) JS and WASM APIs for route planning/info (links summarized in this post), but that doesn't help if only using SimConnect. (Perhaps something to add to my WASimCommander remote interface project.)
 
Thanks for the information. I don't see a direct way for me to overcome the issue for now, so best way would be to indeed use:
LocalState\MISSIONS\Custom\CustomFlight\
flt and pln files and try to make out the information from there with the help of skyvector's api.
And actually the ones that are not retrievable, such as 2186N in:

Code:
        <ATCWaypoint id="NUDAL">
            <ATCWaypointType>Intersection</ATCWaypointType>
            <ICAO>
                <ICAORegion>MM</ICAORegion>
                <ICAOIdent>NUDAL</ICAOIdent>
            </ICAO>
        </ATCWaypoint>
        <ATCWaypoint id="2186N">
            <ATCWaypointType>Intersection</ATCWaypointType>
            <ICAO>
                <ICAORegion>MM</ICAORegion>
                <ICAOIdent>2186N</ICAOIdent>
            </ICAO>
        </ATCWaypoint>
        <ATCWaypoint id="GOSUL">
            <ATCWaypointType>Intersection</ATCWaypointType>
            <ICAO>
                <ICAORegion>MM</ICAORegion>
                <ICAOIdent>GOSUL</ICAOIdent>
            </ICAO>
        </ATCWaypoint>


2186N actually means 21N, 86W

so I can try to parse them this way.
 
Back
Top