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

Method RetrieveGeometryFeatures

libs/search/geocoder.cpp:1912–1923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1910}
1911
1912CBV Geocoder::RetrieveGeometryFeatures(MwmContext const & context, m2::RectD const & rect, RectId id)
1913{
1914 switch (id)
1915 {
1916 case RectId::Pivot: return m_pivotRectsCache.Get(context, rect, m_params.m_scale);
1917 case RectId::Postcode: return m_postcodesRectsCache.Get(context, rect, m_params.m_scale);
1918 case RectId::Locality: return m_localityRectsCache.Get(context, rect, m_params.m_scale);
1919 case RectId::Suburb: return m_localityRectsCache.Get(context, rect, m_params.m_scale);
1920 case RectId::Count: ASSERT(false, ("Invalid RectId.")); return CBV();
1921 }
1922 UNREACHABLE();
1923}
1924
1925bool Geocoder::GetTypeInGeocoding(BaseContext const & ctx, uint32_t featureId, Model::Type & type)
1926{

Callers 1

InitEntryMethod · 0.45

Calls 3

ASSERTFunction · 0.85
CBVClass · 0.70
GetMethod · 0.45

Tested by

no test coverage detected