blob: c073125ea7139b61e6c24c3b6b15523b07cf17e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include "base/geo_object_id.hpp"
#include <string>
namespace geocoder
{
struct Result
{
Result() = default;
Result(base::GeoObjectId const & osmId, double certainty) : m_osmId(osmId), m_certainty(certainty)
{
}
// The encoded osm id of a node, way or relation.
base::GeoObjectId m_osmId = base::GeoObjectId(base::GeoObjectId::kInvalid);
// A floating point number in the range [0.0, 1.0]
// describing the extent to which the result matches
// the query.
// 0.0 corresponds to the least probable results and
// 1.0 to the most probable.
double m_certainty = 0;
};
std::string DebugPrint(Result const & result);
} // namespace geocoder
|