diff --git a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java index 790bbb5b2b..9d2fb93a76 100644 --- a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java +++ b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java @@ -545,8 +545,6 @@ public class MapPoiTypes { public Amenity parseAmenity(String tag, String val, boolean relation, Map otherTags) { - - initPoiTypesByTag(); PoiType pt = poiTypesByTag.get(tag+"/"+val); if(pt == null) { @@ -586,7 +584,7 @@ public class MapPoiTypes { while(it.hasNext()) { Entry e = it.next(); String otag = e.getKey(); - if(!otag.equals(tag)) { + if(!otag.equals(tag) && !otag.equals("name")) { PoiType pat = poiTypesByTag.get(otag+"/"+e.getValue()); if(pat == null) { pat = poiTypesByTag.get(otag);