File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
reader-gtfs/src/main/java/com/graphhopper/reader/gtfs Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 26
26
import org .mapdb .DB ;
27
27
import org .mapdb .DBMaker ;
28
28
import org .mapdb .HTreeMap ;
29
+ import org .slf4j .Logger ;
30
+ import org .slf4j .LoggerFactory ;
29
31
30
32
import java .io .File ;
31
33
import java .io .IOException ;
38
40
39
41
public class GtfsStorage implements GtfsStorageI {
40
42
43
+ private static final Logger LOGGER = LoggerFactory .getLogger (GtfsStorage .class );
44
+
41
45
public static class Validity implements Serializable {
42
46
final BitSet validity ;
43
47
final ZoneId zoneId ;
@@ -158,6 +162,10 @@ boolean loadExisting() {
158
162
this .gtfsFeeds .put (gtfsFeedId , feed );
159
163
this .transfers .put (gtfsFeedId , new Transfers (feed ));
160
164
}
165
+
166
+ LocalDate latestStartDate = LocalDate .ofEpochDay (this .gtfsFeeds .values ().stream ().mapToLong (f -> f .getStartDate ().toEpochDay ()).max ().getAsLong ());
167
+ LocalDate earliestEndDate = LocalDate .ofEpochDay (this .gtfsFeeds .values ().stream ().mapToLong (f -> f .getEndDate ().toEpochDay ()).min ().getAsLong ());
168
+ LOGGER .info ("Calendar range covered by all feeds: {} till {}" , latestStartDate , earliestEndDate );
161
169
return true ;
162
170
}
163
171
You can’t perform that action at this time.
0 commit comments