update import of way point names

This commit is contained in:
afischerdev 2023-04-22 12:46:35 +02:00
parent 8190aaa92d
commit d43edb311d
2 changed files with 20 additions and 19 deletions

View file

@ -109,8 +109,8 @@ public class ServerHandler extends RequestHandler {
}
}
wplist.get(0).name = "from";
wplist.get(wplist.size() - 1).name = "to";
if (wplist.get(0).name.startsWith("via")) wplist.get(0).name = "from";
if (wplist.get(wplist.size() - 1).name.startsWith("via")) wplist.get(wplist.size() - 1).name = "to";
return wplist;
}