forked from organicmaps/organicmaps
[ios] Don't ever set taxi as best router.
This commit is contained in:
parent
2daed343e7
commit
ddb1087243
3 changed files with 6 additions and 4 deletions
|
@ -170,7 +170,7 @@
|
|||
{
|
||||
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatBuildRoute)
|
||||
withParameters:@{kStatValue : kStatSource}];
|
||||
[[MWMRouter router] buildFromPoint:self.target bestRouter:![MWMRouter isTaxi]];
|
||||
[[MWMRouter router] buildFromPoint:self.target bestRouter:YES];
|
||||
[self closePlacePage];
|
||||
}
|
||||
|
||||
|
@ -178,7 +178,7 @@
|
|||
{
|
||||
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatBuildRoute)
|
||||
withParameters:@{kStatValue : kStatDestination}];
|
||||
[[MWMRouter router] buildToPoint:self.target bestRouter:![MWMRouter isTaxi]];
|
||||
[[MWMRouter router] buildToPoint:self.target bestRouter:YES];
|
||||
[self closePlacePage];
|
||||
}
|
||||
|
||||
|
|
|
@ -173,9 +173,8 @@ extern NSString * const kBookmarksChangedNotification;
|
|||
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatBuildRoute)
|
||||
withParameters:@{kStatValue : kStatDestination}];
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"ppRoute"];
|
||||
// Taxi can't be best router.
|
||||
auto r = [MWMRouter router];
|
||||
[r buildToPoint:self.target bestRouter:![MWMRouter isTaxi]];
|
||||
[r buildToPoint:self.target bestRouter:YES];
|
||||
[self hidePlacePage];
|
||||
}
|
||||
|
||||
|
|
|
@ -141,6 +141,9 @@ bool isMarkerPoint(MWMRoutePoint const & point) { return point.IsValid() && !poi
|
|||
- (void)rebuildWithBestRouter:(BOOL)bestRouter
|
||||
{
|
||||
[self clearAltitudeImagesData];
|
||||
// Taxi can't be used as best router.
|
||||
if (bestRouter)
|
||||
bestRouter = ![MWMRouter isTaxi];
|
||||
|
||||
auto const setTags = ^(RouterType t, BOOL isP2P)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue