Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'iphone/Maps/Core/Routing/MWMRouter.mm')
-rw-r--r--iphone/Maps/Core/Routing/MWMRouter.mm12
1 files changed, 11 insertions, 1 deletions
diff --git a/iphone/Maps/Core/Routing/MWMRouter.mm b/iphone/Maps/Core/Routing/MWMRouter.mm
index 3815e4c48c..3729025248 100644
--- a/iphone/Maps/Core/Routing/MWMRouter.mm
+++ b/iphone/Maps/Core/Routing/MWMRouter.mm
@@ -83,7 +83,17 @@ void logPointEvent(MWMRoutePoint * point, NSString * eventType)
return router;
}
-+ (BOOL)hasRouteAltitude { return GetFramework().GetRoutingManager().HasRouteAltitude(); }
++ (BOOL)hasRouteAltitude
+{
+ switch ([self type])
+ {
+ case MWMRouterTypeVehicle:
+ case MWMRouterTypeTaxi: return NO;
+ case MWMRouterTypePedestrian:
+ case MWMRouterTypeBicycle: return GetFramework().GetRoutingManager().HasRouteAltitude();
+ }
+}
+
+ (BOOL)isTaxi
{
return GetFramework().GetRoutingManager().GetRouter() == routing::RouterType::Taxi;