| 393 | } |
| 394 | |
| 395 | void Geocoder::GoEverywhere() |
| 396 | { |
| 397 | // TODO (@y): remove following code as soon as Geocoder::Go() will |
| 398 | // work fast for most cases (significantly less than 1 second). |
| 399 | #if defined(DEBUG) |
| 400 | base::Timer timer; |
| 401 | SCOPE_GUARD(printDuration, [&timer]() { LOG(LINFO, ("Total geocoding time:", timer.ElapsedSeconds(), "seconds")); }); |
| 402 | #endif |
| 403 | |
| 404 | TRACE(GoEverywhere); |
| 405 | |
| 406 | if (m_params.GetNumTokens() == 0) |
| 407 | return; |
| 408 | |
| 409 | vector<MwmInfoPtr> infos; |
| 410 | m_dataSource.GetMwmsInfo(infos); |
| 411 | |
| 412 | GoImpl(infos, false /* inViewport */); |
| 413 | } |
| 414 | |
| 415 | void Geocoder::GoInViewport() |
| 416 | { |
no test coverage detected