Added filter_only tag processing
This commit is contained in:
parent
606b1b67f6
commit
b95c8e4382
3 changed files with 13 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue