If traffic CSV has an empty 4th column, preserve the weight on an edge while updating the duration.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user