added ref as part of name
This commit is contained in:
parent
2e3ab26c85
commit
272a62ab09
1 changed files with 9 additions and 1 deletions
|
@ -136,9 +136,17 @@ public class AmenityMenuController extends MenuController {
|
|||
|
||||
@Override
|
||||
public String getNameStr() {
|
||||
return amenity.getName(
|
||||
String name = amenity.getName(
|
||||
amenity.getType().isWiki() ? getPreferredMapAppLang() : getPreferredMapLang(),
|
||||
isTransliterateNames());
|
||||
Map<String, String> additionalInfo = amenity.getAdditionalInfo();
|
||||
if (additionalInfo != null) {
|
||||
String ref = additionalInfo.get("ref");
|
||||
if (ref != null && !ref.isEmpty()) {
|
||||
return name + " (" + ref + ")";
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue