From e708e779e1087936b889bde02fe3f92edc3da08e Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 7 Nov 2015 23:15:32 +0100 Subject: [PATCH] Poi --- OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);