String postalCode;
String address;
String location;
public void processValueChangeForMarker(ValueChangeEvent valueChangeEvent) {
Position value = (Position) valueChangeEvent.getNewValue();
if (value != null) {
try {
PlaceMark placeMark = GenericServicesFactory.getLocationService().getAddressFromLocation (value.getLatitude(), value.getLongitude());
address = placeMark.getAddress();
postalCode = placeMark.getPostalCodeNumber();
location = value.getLatitude() + ", " + value.getLongitude();
System.out.println("LatLng: " + value.getLatitude() + ", " + value.getLongitude());
System.out.println("address: " + address);
System.out.println("postalCode: " + postalCode);
} catch (Exception e) {
e.printStackTrace();
}