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

Method ToStringForStats

libs/search/result.cpp:212–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212string Result::ToStringForStats() const
213{
214 string readableType;
215 if (GetResultType() == Type::Feature)
216 readableType = classif().GetReadableObjectName(m_matchedType);
217
218 string s;
219 s.append(GetString());
220 s.append("|");
221 s.append(readableType);
222 s.append("|");
223 s.append(IsSuggest() ? "1" : "0");
224 s.append("|");
225 s.append(to_string(mercator::YToLat(m_center.y)));
226 s.append("|");
227 s.append(to_string(mercator::XToLon(m_center.x)));
228 return s;
229}
230
231string DebugPrint(Result::Type type)
232{

Callers

nothing calls this directly

Calls 7

GetResultTypeFunction · 0.85
to_stringFunction · 0.85
YToLatFunction · 0.85
XToLonFunction · 0.85
GetReadableObjectNameMethod · 0.80
GetStringFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected