From 68098b1fffdd7c10c5fc88923747df1758fa55c4 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 3 May 2019 19:18:47 +0200 Subject: [PATCH] fixed a spelling mistake --- .../java/hhn/labsw/bugageocaching/controller/Controller.java | 4 +++- src/main/java/hhn/labsw/bugageocaching/helper/POI.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java b/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java index de86d5d..fe2525c 100644 --- a/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java +++ b/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java @@ -972,7 +972,7 @@ public class Controller { return ResponseEntity.status(200).body(userRepository.getRankingPlaceFromUser(user.getUsername())); } - @ApiOperation(value = "Returns startstations and all other stations he user already visited as POIS") + @ApiOperation(value = "Returns startstations and all other stations the user already visited as POIS") @ApiResponses(value = { @ApiResponse(code = 404, message = "Database error"), @ApiResponse(code = 401, message = "JWT Token expired"), @@ -1003,6 +1003,7 @@ public class Controller { ArrayList poisList = new ArrayList<>(); for (Cache cache : cacheRepository.findAll()) { Station station = cache.getStationen().get(0); + // ICONS müssen noch erstellt werden und die categoryID entsprechend angepasst POI poi = new POI(cache.getName() + "_Station1", (float) station.getLattitude(), (float) station.getLongitude(), 0); poisList.add(poi); } @@ -1014,6 +1015,7 @@ public class Controller { int index = cache.getStationen().indexOf(aktuelleStation); for (int i = 1; i <= index; i++) { Station station = cache.getStationen().get(i); + // ICONS müssen noch erstellt werden und die categoryID entsprechend angepasst int categoryID; if (i < cache.getStationen().size() - 1) { // isnt endstation categoryID = 1; diff --git a/src/main/java/hhn/labsw/bugageocaching/helper/POI.java b/src/main/java/hhn/labsw/bugageocaching/helper/POI.java index 2bb91c7..d6a4051 100644 --- a/src/main/java/hhn/labsw/bugageocaching/helper/POI.java +++ b/src/main/java/hhn/labsw/bugageocaching/helper/POI.java @@ -5,6 +5,7 @@ public class POI { private String Name; private float Latitude; private float Longitude; + // ICONS müssen noch erstellt werden und die categoryID entsprechend angepasst private int CategoryID; // 0 = grünes icon(startstation) // 1 = orangenes icon(folgestationen) // 2 = rotes icon(endstation) public POI(String name, float latitude, float longitude, int categoryID) {