+ StatusCodes.getName(statusCode));
}
public void onSuccess(JsArray<Placemark> locations) {
for (int i = 0; i < locations.length(); ++i) {
Placemark location = locations.get(i);
StringBuilder value = new StringBuilder();
if (location.getAddress() != null) {
value.append(location.getAddress());
} else {
if (location.getCity() != null) {
value.append(location.getCity());
}
if (location.getAdministrativeArea() != null) {
value.append(location.getAdministrativeArea() + ", ");
}
if (location.getCountry() != null) {
value.append(location.getCountry());
}
}
int ordinal = (i + 1);
panel.add(new Label(" " + ordinal + ") " + value.toString()));
}