Change traffic CSV field value from weight to rate
and make the value required. If the weight name is 'duration' than the rate value can be computed as speed / 3.6 Issue: https://github.com/Project-OSRM/osrm-backend/issues/3823
This commit is contained in:
committed by
Patrick Niklaus
parent
a88fef2937
commit
37794a5e8a
@@ -49,9 +49,9 @@ struct Segment final
|
||||
|
||||
struct SpeedSource final
|
||||
{
|
||||
SpeedSource() : speed(0), weight(std::numeric_limits<double>::quiet_NaN()) {}
|
||||
SpeedSource() : speed(0), rate(std::numeric_limits<double>::quiet_NaN()) {}
|
||||
unsigned speed;
|
||||
double weight;
|
||||
double rate;
|
||||
std::uint8_t source;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user