fixed a spelling mistake
This commit is contained in:
parent
ed3fb3ff0e
commit
68098b1fff
@ -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<POI> 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;
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user