From 3d85ce745ae9aa8ceed5b28b3f47955d295a4956 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Tue, 10 Nov 2015 13:33:16 +0300 Subject: [PATCH] Rebuild route to current coordinate. --- map/framework.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/map/framework.cpp b/map/framework.cpp index 530cbcc67f..0cf375ef6c 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -2303,7 +2303,8 @@ void Framework::CheckLocationForRouting(GpsInfo const & info) GetPlatform().RunOnGuiThread(bind(&Framework::InsertRoute, this, route)); }; - m_routingSession.RebuildRoute(position, readyCallback, m_progressCallback, 0 /* timeoutSec */); + m_routingSession.RebuildRoute(MercatorBounds::FromLatLon(info.m_latitude, info.m_longitude), + readyCallback, m_progressCallback, 0 /* timeoutSec */); } }