Class FileAnalyzer
java.lang.Object
slash.navigation.converter.cmdline.FileAnalyzer
Reads a file with the full RouteConverter parser and aggregates the metadata
described in
src/main/doc/analyze-json.md (specs/00055) into a single
line of JSON. Aggregation runs over every position list of the file: length,
duration, elevation gain/loss are summed, the bounding box is unioned and the
start time is the earliest position timestamp.- Author:
- Christian Pesch
-
Constructor Summary
ConstructorsConstructorDescriptionFileAnalyzer(NavigationFormatRegistry registry, RouteLengthComputer lengthComputer) -
Method Summary
-
Constructor Details
-
Method Details
-
analyze
- Returns:
- one line of JSON per the analyze contract
- Throws:
IOException- if the file cannot be read or parsed
-