update lib part one
This commit is contained in:
parent
eba0b18689
commit
54a7ad6b9d
6 changed files with 41 additions and 4 deletions
|
|
@ -95,6 +95,13 @@ public class ServerHandler extends RequestHandler {
|
|||
if (lonLat.length < 2)
|
||||
throw new IllegalArgumentException("we need two lat/lon points at least!");
|
||||
wplist.add(readPosition(lonLat[0], lonLat[1], "via" + i));
|
||||
if (lonLat.length > 2) {
|
||||
if (lonLat[2].equals("d")) {
|
||||
wplist.get(wplist.size()-1).direct = true;
|
||||
} else {
|
||||
wplist.get(wplist.size()-1).name = lonLat[2];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wplist.get(0).name = "from";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue