Added filter_only tag processing

This commit is contained in:
Alexey Kulish 2016-10-16 10:08:52 +03:00
parent 606b1b67f6
commit b95c8e4382
3 changed files with 13 additions and 0 deletions

View file

@ -482,6 +482,7 @@ public class MapPoiTypes {
tp.setOsmTag2(parser.getAttributeValue("", "tag2"));
tp.setOsmValue2(parser.getAttributeValue("", "value2"));
tp.setPoiAdditionalCategory(poiAdditionalCategory);
tp.setFilterOnly(Boolean.parseBoolean(parser.getAttributeValue("", "filter_only")));
if (lastType != null) {
lastType.addPoiAdditional(tp);
} else if (lastFilter != null) {

View file

@ -14,6 +14,7 @@ public class PoiType extends AbstractPoiType {
private String osmValue;
private String osmValue2;
private boolean poiAdditionalReference;
private boolean filterOnly;
private String nameTag;
@ -103,6 +104,14 @@ public class PoiType extends AbstractPoiType {
this.poiAdditionalReference = poiAdditionalReference;
}
public boolean isFilterOnly() {
return filterOnly;
}
public void setFilterOnly(boolean filterOnly) {
this.filterOnly = filterOnly;
}
public PoiCategory getCategory() {
return category;
}

View file

@ -217,6 +217,9 @@ public class AmenityMenuBuilder extends MenuBuilder {
PoiType pType = null;
if (pt != null) {
pType = (PoiType) pt;
if (pType.isFilterOnly()) {
continue;
}
poiTypeOrder = pType.getOrder();
poiTypeKeyName = pType.getKeyName();
}