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:
authorv.mikhaylenko <v.mikhaylenko@corp.mail.ru>2015-07-23 11:17:24 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:59:13 +0300
commitedb49ef5504d13281914ecf3f2b0c23b0a1fb428 (patch)
tree939c99f1dec8907a9a6180d754cd27ded978a640 /iphone/Maps/Classes/MWMPlacePageViewManager.mm
parentd15c967af655490a437d4ee135d3d3eddadc892b (diff)
[ios] Added real data to navigation dashboard.
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageViewManager.mm')
-rw-r--r--iphone/Maps/Classes/MWMPlacePageViewManager.mm13
1 files changed, 7 insertions, 6 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageViewManager.mm b/iphone/Maps/Classes/MWMPlacePageViewManager.mm
index f38e4c8048..f7477f8a19 100644
--- a/iphone/Maps/Classes/MWMPlacePageViewManager.mm
+++ b/iphone/Maps/Classes/MWMPlacePageViewManager.mm
@@ -170,12 +170,13 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState)
- (void)buildRoute
{
- [self.delegate buildRoute:m_userMark->GetUserMark()->GetOrg()];
-}
-
-- (void)stopBuildingRoute
-{
- [self.placePage stopBuildingRoute];
+ auto & f = GetFramework();
+ m2::PointD const & destination = m_userMark->GetUserMark()->GetOrg();
+ CLLocationCoordinate2D const & myCoordinate = [MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate;
+ m2::PointD const myPosition {MercatorBounds::LonToX(myCoordinate.longitude), MercatorBounds::LatToY(myCoordinate.latitude)};
+ routing::RouterType const actualyRoterType = f.GetBestRouter(myPosition, destination);
+ f.SetRouter(actualyRoterType);
+ [self.delegate buildRoute:destination];
}
- (void)share