Treat leisure and healthcare as POIs.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako 2024-01-31 17:11:15 -03:00
parent d7e8cb7933
commit 80ecbf7590
3 changed files with 6 additions and 3 deletions

View file

@ -474,7 +474,8 @@ IsPoiChecker::IsPoiChecker() : BaseChecker(1 /* level */)
"historic",
"railway",
"highway",
"aeroway"
"aeroway",
"healthcare",
};
for (auto const & type : poiTypes)

View file

@ -320,6 +320,7 @@ public:
DECLARE_CHECKER_INSTANCE(IsPisteChecker);
};
/// @todo Should be merged/replaced with search::IsPoiChecker in model.cpp ?
class IsPoiChecker : public BaseChecker
{
IsPoiChecker();
@ -474,7 +475,7 @@ class IsFeeTypeChecker : public BaseChecker
public:
DECLARE_CHECKER_INSTANCE(IsFeeTypeChecker);
};
class IsToiletsChecker : public BaseChecker
{
IsToiletsChecker();

View file

@ -55,13 +55,14 @@ public:
Classificator const & c = classif();
auto paths = {
"amenity", "healthcare", "historic", "office", "railway", "shop", "sport", "tourism", "craft"
"amenity", "craft", "healthcare", "historic", "leisure", "office", "railway", "shop", "sport", "tourism",
};
for (auto const & path : paths)
m_types.push_back(c.GetTypeByPath({path}));
}
};
/// @todo Should be merged/replaced with ftypes::IsPoiChecker?
class IsPoiChecker
{
public: