Files
comaps/search/region_address_getter.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

32 lines
825 B
C++

#pragma once
#include "search/city_finder.hpp"
#include "search/region_info_getter.hpp"
#include "search/reverse_geocoder.hpp"
namespace storage
{
class CountryInfoGetter;
} // namespace storage
namespace search
{
// Note: This class is NOT thread-safe.
class RegionAddressGetter
{
public:
RegionAddressGetter(DataSource const & dataSource, storage::CountryInfoGetter const & infoGetter);
ReverseGeocoder::RegionAddress GetNearbyRegionAddress(m2::PointD const & center);
std::string GetLocalizedRegionAddress(ReverseGeocoder::RegionAddress const & addr) const;
std::string GetLocalizedRegionAddress(m2::PointD const & center);
private:
ReverseGeocoder m_reverseGeocoder;
RegionInfoGetter m_nameGetter;
CityFinder m_cityFinder;
storage::CountryInfoGetter const & m_infoGetter;
};
} // namespace search