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

Method GetOriginalStreetByHouse

libs/search/reverse_geocoder.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool ReverseGeocoder::GetOriginalStreetByHouse(FeatureType & house, FeatureID & streetId) const
164{
165 Address addr;
166 HouseTable table(m_dataSource);
167
168 // Ignore edits here, because this function is called once with edits check before.
169 if (GetNearbyAddress(table, FromFeature(house, 0.0 /* distMeters */), true /* ignoreEdits */, addr))
170 {
171 streetId = addr.m_street.m_id;
172 return true;
173 }
174
175 return false;
176}
177
178void ReverseGeocoder::GetNearbyAddress(m2::PointD const & center, Address & addr) const
179{

Callers 1

GetMatchingStreetImplMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected