Nameplates (multiplayer) API in MSFS2024

I see the nameplates in the 2024 Alpha have an additional field ‘distance’ & praying the API actually has lat/long, not just the distance. I can easily compute distance from the lat/long but not the other way around, and lat/long would for the first time in the MSFS franchise give us a multiplayer API (albeit a hack from the nameplates) that tells us player name, plane type & location.

2 Likes

If the lat/lon isn’t shown it’s unlikely it’ll be part of the data. It would be incredibly useful though. Or at least making the nameplate data part of the TCAS system…

yup, you are probably right. The nameplate developer must have had the lat/long for each player to place the nameplate, but I haven’t been able to reverse engineer the code that does that. Either adding position to the nameplates data (as it’s sent to the html/js, not in the actual nameplate), or adding name and plane type to the GET_AIR_TRAFFIC data (see below), would give us a minimalist multiplayer API with playername/plane/location.

let listener = RegisterViewListener('JS_LISTENER_MAPS', () => {
listener.trigger('JS_BIND_BINGMAP', 'testMap', false);
});

Coherent.call("GET_AIR_TRAFFIC").then((gat_result) => {
console.log("TRAFFIC : " + gat_result.length + " airplanes found",gat_result);
});