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

Method FormatAddress

libs/search/reverse_geocoder.cpp:367–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367string ReverseGeocoder::Address::FormatAddress() const
368{
369 // Check whether we can format address according to the query type
370 // and actual address distance.
371
372 // TODO (@m, @y): we can add "Near" prefix here in future according
373 // to the distance.
374 if (m_building.m_distanceMeters > 200.0)
375 return {};
376
377 return Join(m_street.m_name, m_building.m_name);
378}
379
380bool ReverseGeocoder::RegionAddress::IsValid() const
381{

Calls 1

JoinFunction · 0.70

Tested by

no test coverage detected