loc.setGpsCoordinate(coordinate);
}
if (hasText(address))
{
Address a = new Address();
a.setStreetAddress(address.getText());
a.setCity(city.getText());
a.setState(state.getText());
a.setCountry(country.getText());
a.setPostalCode(postal.getText());
loc.setAddress(a);
}
loc.setWhereOnEarthId(new WhereOnEarthId(woeid.getText()));