MCPcopy Create free account
hub / github.com/comaps/comaps / GoEverywhere

Method GoEverywhere

libs/search/geocoder.cpp:395–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void 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
415void Geocoder::GoInViewport()
416{

Callers 1

SearchMethod · 0.80

Calls 3

ElapsedSecondsMethod · 0.80
GetMwmsInfoMethod · 0.80
GetNumTokensMethod · 0.45

Tested by

no test coverage detected