Temporary fix of poi additionals in context menu

This commit is contained in:
Alexey Kulish 2016-10-16 16:48:16 +03:00
parent f8eb5fc07e
commit f0f684a6e5

View file

@ -214,6 +214,9 @@ public class AmenityMenuBuilder extends MenuBuilder {
String poiTypeKeyName = "";
AbstractPoiType pt = poiTypes.getAnyPoiAdditionalTypeByKey(key);
if (pt == null && !Algorithms.isEmpty(vl) && vl.length() < 50) {
pt = poiTypes.getAnyPoiAdditionalTypeByKey(key + "_" + vl);
}
PoiType pType = null;
if (pt != null) {
pType = (PoiType) pt;