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

type_helper.cpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7bc1f615f9da3beeb77800048b291027dba1f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "generator/type_helper.hpp"

#include "indexer/classificator.hpp"

namespace generator
{
uint32_t GetPlaceType(FeatureParams const & params)
{
  auto static const placeType = classif().GetTypeByPath({"place"});
  return params.FindType(placeType, 1 /* level */);
}

uint32_t GetPlaceType(FeatureBuilder1 const & feature)
{
  return GetPlaceType(feature.GetParams());
}
}  // namespace generator