Skip to content

Commit

Permalink
StreetAddressTest: Handle upload check not looking at roads during vi…
Browse files Browse the repository at this point in the history
…sit phase

Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Jan 3, 2023
1 parent 1e774df commit 1c4b249
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ public void endTest() {
Collection<String> names = getSurroundingHighwayNames(entry.getKey());
for (OsmPrimitive primitive : entry.getValue()) {
if (!primitive.isOutsideDownloadArea()) {
if (this.isBeforeUpload && !names.contains(primitive.get(ADDR_STREET))
&& primitive.getDataSet() != null) {
BBox bbox = new BBox(primitive.getBBox());
bbox.addPrimitive(primitive, 0.001);
for (Way way : primitive.getDataSet().searchWays(bbox)) {
if (isHighway(way)) {
this.visit(way);
}
}
names = getSurroundingHighwayNames(entry.getKey());
}
if (!names.contains(primitive.get(ADDR_STREET))) {
namePrimitiveMap.add(primitive);
}
Expand Down

0 comments on commit 1c4b249

Please sign in to comment.