Skip to content

Commit

Permalink
Process tiger
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanPyrohivskyi committed Dec 13, 2024
1 parent e41b4a8 commit fc618a3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion OsmAnd-java/src/main/java/net/osmand/osm/edit/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


public abstract class Entity implements Serializable {
public enum EntityType {
public enum EntityType {
NODE,
WAY,
RELATION,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -200,6 +201,9 @@ public String putTagNoLC(String key, String value) {
if (tags == null) {
tags = new LinkedHashMap<String, String>();
}
if (key.equals("tiger:osmand") && value.equals("yes")) {
isTiger = true;
}
return tags.put(key, value);
}

Expand Down Expand Up @@ -352,4 +356,8 @@ public boolean compareEntity(Entity thatObj) {
Algorithms.objectEquals(this.tags, thatObj.tags);
}
}

public boolean isTiger() {
return isTiger;
}
}

0 comments on commit fc618a3

Please sign in to comment.