diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-09-17 14:06:27 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2018-09-20 18:05:43 +0300 |
commit | 531adb97c4d694652450ce9f1c7103a4623dd995 (patch) | |
tree | 92dc6a9561996f09ae9a3feaa325de1d313edd93 /routing_common | |
parent | bf4661a690ca489ccb0c811dd0e426ea1f41a44b (diff) |
Adding shared_ptr<CityRoads> to GraphAttrs.
Diffstat (limited to 'routing_common')
-rw-r--r-- | routing_common/vehicle_model.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routing_common/vehicle_model.hpp b/routing_common/vehicle_model.hpp index f3ad6d7126..fbe0628d73 100644 --- a/routing_common/vehicle_model.hpp +++ b/routing_common/vehicle_model.hpp @@ -43,6 +43,9 @@ public: } }; + // @TODO(bykoianko) A struct for adding speed in city and out side should be added. + // This structure should contain to fields of SpeedKMpH type. + /// Factors which reduce weight and ETA speed on feature in case of bad pavement. /// Both should be in range [0.0, 1.0]. struct SpeedFactor @@ -57,6 +60,8 @@ public: /// 0 means that it's forbidden to move on this feature or it's not a road at all. virtual SpeedKMpH GetSpeed(FeatureType & f) const = 0; + // @TODO(bykoianko) Method for getting speed in city and outside should be added. + /// @returns Max weight and ETA speed in KMpH for this model virtual SpeedKMpH GetMaxSpeed() const = 0; @@ -217,6 +222,7 @@ private: } private: + // @TODO(bykoianko) Road limits should contain speed for roads inside a city and outside. SpeedKMpH const m_speed; bool const m_isPassThroughAllowed; }; |