Let traffic updates accept decimal edge_speed_in_km_h

This commit is contained in:
chengquan.ju 2021-08-24 11:07:22 +08:00
parent dca35dcc86
commit 9e68008f8c

View File

@ -37,7 +37,7 @@ SegmentLookupTable readSegmentValues(const std::vector<std::string> &paths)
CSVFilesParser<Segment, SpeedSource> parser(
1,
qi::ulong_long >> ',' >> qi::ulong_long,
qi::uint_ >> -(',' >> (qi::double_ | qi::attr(value_if_blank))));
qi::double_ >> -(',' >> (qi::double_ | qi::attr(value_if_blank))));
// Check consistency of keys in the result lookup table
auto result = parser(paths);