Welcome to mirror list, hosted at ThFree Co, Russian Federation.

result.hpp « geocoder - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba04bad46d80143536eb76b007f0ac07c50493cd (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
#pragma once

#include "base/geo_object_id.hpp"

#include <string>

namespace geocoder
{
struct Result
{
  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