statistics method
Logs statistics about the contents of this sub-file.
Implementation
Future<void> statistics() async {
int poiCount = 0;
for (final poiholderCollection in _poiWayCollections.poiholderCollections.values) {
poiCount += poiholderCollection.length;
}
int wayCount = 0;
int pathCount = 0;
int nodeCount = 0;
for (final wayholderCollection in _poiWayCollections.wayholderCollections.values) {
wayCount += wayholderCollection.length;
pathCount += await wayholderCollection.pathCount();
nodeCount += await wayholderCollection.nodeCount();
}
_log.info(
"$zoomlevelRange, baseZoomLevel: $baseZoomLevel, tiles: $tileCount, poi: $poiCount, way: $wayCount with ${wayCount != 0 ? (pathCount / wayCount).toStringAsFixed(1) : "n/a"} paths and ${pathCount != 0 ? (nodeCount / pathCount).toStringAsFixed(1) : "n/a"} nodes per path",
);
}