Begining of contains

This commit is contained in:
2022-09-25 00:17:17 +02:00
parent 46214e9dc3
commit e677a345e0
3 changed files with 12 additions and 25 deletions
+9
View File
@@ -283,6 +283,9 @@ void recordingWorker()
germanairlinesva::file::recording::RecordingEntry lastPath;
std::uint32_t segment = 0;
auto ap = (*database)["EDDF"];
auto rwys = ap.second;
while (!wantsExit) {
germanairlinesva::websocket::data copy;
{
@@ -300,6 +303,12 @@ void recordingWorker()
if (strcmp(copy.path, "") != 0 && copy.pause && lastPath != currentPath) {
p.addEntry(currentPath);
lastPath = currentPath;
for (const auto &it : rwys) {
if (it.containsPoint({copy.lat, copy.lon})) {
toLog("On Runway: " + it.to_string());
}
}
}
segment++;