If traffic CSV has an empty 4th column, preserve the weight on an edge while updating the duration.

This commit is contained in:
Daniel Patterson
2017-08-31 14:51:05 -07:00
parent 7702ebde61
commit b17f40862c
4 changed files with 61 additions and 9 deletions
+2 -2
View File
@@ -49,9 +49,9 @@ struct Segment final
struct SpeedSource final
{
SpeedSource() : speed(0), rate(std::numeric_limits<double>::quiet_NaN()) {}
SpeedSource() : speed(0), rate() {}
unsigned speed;
double rate;
boost::optional<double> rate;
std::uint8_t source;
};