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

Method CityHasPostcode

libs/search/geocoder.cpp:868–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866}
867
868bool Geocoder::CityHasPostcode(BaseContext const & ctx) const
869{
870 if (!ctx.m_city)
871 return false;
872
873 return m_postcodes.Has(ctx.m_city->GetFeatureIndex(), ctx.m_city->m_featureId.IsWorld());
874}
875
876template <typename Fn>
877void Geocoder::ForEachCountry(ExtendedMwmInfos const & extendedInfos, Fn && fn)

Callers

nothing calls this directly

Calls 3

GetFeatureIndexMethod · 0.80
HasMethod · 0.45
IsWorldMethod · 0.45

Tested by

no test coverage detected