def METHOD_NAME(self):
    if self.radioButton_rest_type_terrestrial.isChecked():
        return "terrestrial"
    elif self.radioButton_rest_type_coastal.isChecked():
        return "coastal"
    else:
        # Should never get here
        raise