[iOS] fixed routing from start point

This commit is contained in:
Aleksey Belouosv 2018-07-12 13:50:37 +03:00 committed by Vlad Mihaylenko
parent bd8805ec03
commit 53edd20eab

View file

@ -298,7 +298,9 @@ void logSponsoredEvent(MWMPlacePageData * data, NSString * eventName)
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatBuildRoute)
withParameters:@{kStatValue : kStatDestination}];
[MWMRouter stopRouting];
if ([MWMRouter isOnRoute])
[MWMRouter stopRouting];
if ([MWMTrafficManager transitEnabled])
[MWMRouter setType:MWMRouterTypePublicTransport];