add(c);
}
public LocationParameters getLocationParameters()
{
LocationParameters loc = new LocationParameters();
if (hasText(latitude) && hasText(longitude))
{
GpsCoordinate coordinate = new GpsCoordinate(latitude.getText(), longitude.getText());
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()));
if (hasText(mnc))
{
CellTower tower = new CellTower();
tower.setMnc(new Integer(mnc.getText()));
tower.setMcc(new Integer(mcc.getText()));
tower.setLac(new Integer(lac.getText()));
tower.setCellid(new Integer(cellid.getText()));
loc.setCellTower(tower);
}
return loc;
}