diff --git a/core/src/main/java/com/graphhopper/reader/ReaderWay.java b/core/src/main/java/com/graphhopper/reader/ReaderWay.java index a8638739b74..f7184030b8c 100644 --- a/core/src/main/java/com/graphhopper/reader/ReaderWay.java +++ b/core/src/main/java/com/graphhopper/reader/ReaderWay.java @@ -33,7 +33,10 @@ public ReaderWay(long id) { } public ReaderWay(ReaderWay other) { - super(other.getId(), other.getType(), other.getTags()); + super(other.getId(), other.getType()); + for (String key : other.getTags().keySet()) { + setTag(key, other.getTag(key)); + } this.nodes = other.getNodes(); }