diff --git a/OsmAnd-java/src/main/java/net/osmand/osm/edit/Entity.java b/OsmAnd-java/src/main/java/net/osmand/osm/edit/Entity.java index 7bb8edbf49b..183d29245bf 100644 --- a/OsmAnd-java/src/main/java/net/osmand/osm/edit/Entity.java +++ b/OsmAnd-java/src/main/java/net/osmand/osm/edit/Entity.java @@ -14,7 +14,7 @@ public abstract class Entity implements Serializable { - public enum EntityType { + public enum EntityType { NODE, WAY, RELATION, @@ -110,6 +110,7 @@ public boolean equals(Object obj) { private int version; private double latitude; private double longitude; + private boolean isTiger; public static final int MODIFY_UNKNOWN = 0; public static final int MODIFY_DELETED = -1; public static final int MODIFY_MODIFIED = 1; @@ -200,6 +201,9 @@ public String putTagNoLC(String key, String value) { if (tags == null) { tags = new LinkedHashMap(); } + if (key.equals("tiger:osmand") && value.equals("yes")) { + isTiger = true; + } return tags.put(key, value); } @@ -352,4 +356,8 @@ public boolean compareEntity(Entity thatObj) { Algorithms.objectEquals(this.tags, thatObj.tags); } } + + public boolean isTiger() { + return isTiger; + } }