Skip to content

Commit

Permalink
sepinf-inc#2286: handle ufed:PositionAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
aberenguel committed Nov 5, 2024
1 parent 184110c commit 28ef03d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ public String getCountry() {
return readUfedMetadata(item, "Country");
}

public String getPositionAddress() {
return readUfedMetadata(item, "PositionAddress");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,15 @@ private String formatLocation(Message message) {
String city = localization.getCity();
String state = localization.getState();
String country = localization.getCountry();
String positionAddress = localization.getPositionAddress();
String complement = Arrays.asList(city, state, country).stream().filter(StringUtils::isNotBlank).collect(Collectors.joining(" - "));

if (isNotBlank(name)) {
div.with(span(name), br());
}
if (isNotBlank(positionAddress)) {
div.with(span(i(positionAddress)), br());
}
if (isNotBlank(street)) {
String fullStreet = street;
if (isNotBlank(houseNumber) && !"0".equals(houseNumber)) {
Expand Down

0 comments on commit 28ef03d

Please sign in to comment.