| 252 | } |
| 253 | |
| 254 | base::JSONPtr ToJSON(Sample::Result const & result) |
| 255 | { |
| 256 | auto root = base::NewJSONObject(); |
| 257 | ToJSONObject(*root, "position", result.m_pos); |
| 258 | ToJSONObject(*root, "name", result.m_name); |
| 259 | ToJSONObject(*root, "houseNumber", result.m_houseNumber); |
| 260 | ToJSONObject(*root, "types", result.m_types); |
| 261 | ToJSONObject(*root, "relevancy", result.m_relevance); |
| 262 | return root; |
| 263 | } |
| 264 | |
| 265 | string DebugPrint(Sample::Result::Relevance r) |
| 266 | { |
nothing calls this directly
no test coverage detected