Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
30
libs/routing_common/pedestrian_model.hpp
Normal file
30
libs/routing_common/pedestrian_model.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "routing_common/vehicle_model.hpp"
|
||||
|
||||
namespace routing
|
||||
{
|
||||
|
||||
class PedestrianModel : public VehicleModel
|
||||
{
|
||||
public:
|
||||
PedestrianModel();
|
||||
explicit PedestrianModel(VehicleModel::LimitsInitList const & speedLimits);
|
||||
PedestrianModel(VehicleModel::LimitsInitList const & limits, HighwayBasedSpeeds const & speeds);
|
||||
|
||||
/// VehicleModelInterface overrides:
|
||||
SpeedKMpH GetSpeed(FeatureTypes const & types, SpeedParams const & speedParams) const override;
|
||||
bool IsOneWay(FeatureTypes const &) const override { return false; }
|
||||
SpeedKMpH const & GetOffroadSpeed() const override;
|
||||
|
||||
static PedestrianModel const & AllLimitsInstance();
|
||||
};
|
||||
|
||||
class PedestrianModelFactory : public VehicleModelFactory
|
||||
{
|
||||
public:
|
||||
// TODO: remove countryParentNameGetterFn default value after removing unused pedestrian routing
|
||||
// from road_graph_router
|
||||
PedestrianModelFactory(CountryParentNameGetterFn const & countryParentNameGetterFn = {});
|
||||
};
|
||||
} // namespace routing
|
||||
Loading…
Add table
Add a link
Reference in a new issue