| 365 | } |
| 366 | |
| 367 | string 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 | |
| 380 | bool ReverseGeocoder::RegionAddress::IsValid() const |
| 381 | { |
no test coverage detected