json output mode for shapevl

This commit is contained in:
Patrick Brosi 2022-01-09 23:58:18 +01:00
parent f10397db41
commit 6473dcdb52
3 changed files with 67 additions and 8 deletions

View file

@ -16,6 +16,7 @@
#include "pfaedle/Def.h"
#include "shapevl/Result.h"
#include "util/geo/Geo.h"
#include "util/json/Writer.h"
using ad::cppgtfs::gtfs::Shape;
using ad::cppgtfs::gtfs::Trip;
@ -57,6 +58,9 @@ class Collector {
// Print general stats to os
void printShortStats(std::ostream* os) const;
// Get JSON stats
util::json::Dict getJSONStats() const;
// Print a CSV for the results to os
void printCsv(std::ostream* os, const std::set<Result>& result) const;