}
});
// local vars: current city and current day
String currentDate = "";
Point2D.Double anchorLocation = new Point2D.Double(locationResources.get(0).latitude, locationResources.get(0).longitude);
City anchorCity = getClosestCity(anchorLocation.x, anchorLocation.y);
int count = 0;
LocationFacet lastLocationResourceMatchingAnchor=locationResources.get(0);
long start = locationResources.get(0).start;
for (LocationFacet locationResource : locationResources) {
try {
City newCity = anchorCity;
Point2D.Double location = new Point2D.Double(locationResource.latitude, locationResource.longitude);
boolean withinAnchorRange = isWithinRange(location, anchorLocation);
if (!withinAnchorRange) {
anchorLocation = new Point2D.Double(locationResource.latitude, locationResource.longitude);