forked from organicmaps/organicmaps
[classificator] Add drinking_water=yes, drinking_water=no types
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This commit is contained in:
parent
c304841bb0
commit
56f92e879e
4 changed files with 5 additions and 5 deletions
|
@ -587,8 +587,8 @@ fee|yes;[fee?];;name;int_name;500;
|
|||
fee|no;[fee=no];;name;int_name;501;
|
||||
toilets|yes;502;
|
||||
highway|trunk_link|tunnel;[highway=trunk_link][tunnel?];;name;int_name;503;
|
||||
deprecated|deprecated;504;x
|
||||
deprecated|deprecated;505;x
|
||||
drinking_water|yes;504;
|
||||
drinking_water|no;505;
|
||||
deprecated|deprecated;506;x
|
||||
deprecated|deprecated;507;x
|
||||
deprecated|deprecated;508;x
|
||||
|
|
Can't render this file because it contains an unexpected character in line 7 and column 16.
|
|
@ -56,8 +56,7 @@ ford=yes : highway=ford
|
|||
barrier=jersey_barrier : barrier=block
|
||||
barrier=sliding_gate : barrier=gate
|
||||
|
||||
drinkable=yes : amenity=drinking_water
|
||||
drinking_water=yes : amenity=drinking_water
|
||||
drinkable=yes : drinking_water=yes
|
||||
water_point=yes : amenity=water_point
|
||||
waterway=water_point : amenity=water_point
|
||||
sanitary_dump_station=yes : amenity=sanitary_dump_station
|
||||
|
|
|
@ -410,7 +410,7 @@ UNIT_CLASS_TEST(TestWithClassificator, OsmType_Synonyms)
|
|||
TEST(params.IsTypeExist(GetType({"amenity", "restaurant"})), ());
|
||||
TEST(params.IsTypeExist(GetType({"tourism", "hotel"})), ());
|
||||
TEST(params.IsTypeExist(GetType({"toilets", "yes"})), ());
|
||||
TEST(params.IsTypeExist(GetType({"amenity", "drinking_water"})), ());
|
||||
TEST(params.IsTypeExist(GetType({"drinking_water", "yes"})), ());
|
||||
}
|
||||
|
||||
// Duplicating test.
|
||||
|
|
|
@ -146,6 +146,7 @@ namespace
|
|||
static uint32_t const arrTypes[] = {
|
||||
cl.GetTypeByPath({"internet_access"}),
|
||||
cl.GetTypeByPath({"toilets"}),
|
||||
cl.GetTypeByPath({"drinking_water"}),
|
||||
};
|
||||
if (base::IsExist(arrTypes, type))
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue