adjusted the categoryIDs again

This commit is contained in:
Michael 2019-05-07 17:54:25 +02:00
parent d32d8ca3ea
commit 45d84db362
2 changed files with 3 additions and 3 deletions

View File

@ -1002,7 +1002,7 @@ public class Controller {
ArrayList<POI> poisList = new ArrayList<>();
for (Cache cache : cacheRepository.findAll()) {
Station station = cache.getStationen().get(0);
POI poi = new POI(cache.getName() + "_Station1", (float) station.getLattitude(), (float) station.getLongitude(), 201);
POI poi = new POI(cache.getName() + "_Station1", (float) station.getLattitude(), (float) station.getLongitude(), 202);
poisList.add(poi);
}
@ -1015,7 +1015,7 @@ public class Controller {
Station station = cache.getStationen().get(i);
int categoryID;
if (i < cache.getStationen().size() - 1) { // isnt endstation
categoryID = 202;
categoryID = 201;
} else { // is endstation
categoryID = 203;
}

View File

@ -5,7 +5,7 @@ public class POI {
private String Name;
private float Latitude;
private float Longitude;
private int CategoryID; // 201 = grünes icon(startstation) // 202 = blaues icon(folgestationen) // 203 = rotes icon(endstation)
private int CategoryID; // 202 = grünes icon(startstation) // 201 = blaues icon(folgestationen) // 203 = rotes icon(endstation)
public POI(String name, float latitude, float longitude, int categoryID) {
Name = name;