[bicycle routing] Using bicycle routing in framework.

This commit is contained in:
Vladimir Byko-Ianko 2016-04-18 13:23:37 +03:00
parent 2a3b73a756
commit 28c1ff751c

View file

@ -2206,6 +2206,11 @@ void Framework::SetRouterImpl(RouterType type)
router = CreatePedestrianAStarBidirectionalRouter(m_model.GetIndex(), countryFileGetter);
m_routingSession.SetRoutingSettings(routing::GetPedestrianRoutingSettings());
}
else if (type == RouterType::Bicycle)
{
router = CreateBicycleAStarBidirectionalRouter(m_model.GetIndex(), countryFileGetter);
m_routingSession.SetRoutingSettings(routing::GetBicycleRoutingSettings());
}
else
{
auto localFileChecker = [this](string const & countryFile) -> bool