Add is in place
This commit is contained in:
parent
21f445a883
commit
3641bd0ccc
1 changed files with 3 additions and 0 deletions
|
@ -301,8 +301,11 @@ public abstract class Entity implements Serializable {
|
|||
String values = getTag(OSMTagKey.IS_IN);
|
||||
if (values == null) {
|
||||
String city = getTag(OSMTagKey.ADDR_CITY);
|
||||
String place = getTag(OSMTagKey.ADDR_PLACE);
|
||||
if(!Algorithms.isEmpty(city)) {
|
||||
return Collections.singleton(city.trim());
|
||||
} else if(!Algorithms.isEmpty(place)) {
|
||||
return Collections.singleton(place.trim());
|
||||
}
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue