| 469 | } |
| 470 | |
| 471 | std::string DrawWidget::GetDistance(search::Result const & res) const |
| 472 | { |
| 473 | platform::Distance dist; |
| 474 | if (auto const position = m_framework.GetCurrentPosition()) |
| 475 | { |
| 476 | auto const ll = mercator::ToLatLon(*position); |
| 477 | double dummy; |
| 478 | (void)m_framework.GetDistanceAndAzimut(res.GetFeatureCenter(), ll.m_lat, ll.m_lon, -1.0, dist, dummy); |
| 479 | } |
| 480 | return dist.ToString(); |
| 481 | } |
| 482 | |
| 483 | void DrawWidget::CreateFeature() |
| 484 | { |
no test coverage detected