diff --git a/application/controllers/Api.php b/application/controllers/Api.php index 9e1d49bc..cf9344aa 100644 --- a/application/controllers/Api.php +++ b/application/controllers/Api.php @@ -617,6 +617,8 @@ class API extends CI_Controller { $return['location'] = $call_lookup_results->COL_QTH; $return['iota_ref'] = $call_lookup_results->COL_IOTA; $return['qsl_manager'] = $call_lookup_results->COL_QSL_VIA; + $return['state'] = $call_lookup_results->COL_STATE; + $return['us_county'] = $call_lookup_results->COL_CNTY; if ($return['gridsquare'] != "") { $return['latlng'] = $this->qralatlng($return['gridsquare']); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 1a29f709..0b60e9cb 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -386,7 +386,7 @@ class Logbook_model extends CI_Model { * */ function call_lookup_result($callsign) { - $this->db->select('COL_CALL, COL_NAME, COL_QSL_VIA, COL_GRIDSQUARE, COL_QTH, COL_IOTA, COL_TIME_ON'); + $this->db->select('COL_CALL, COL_NAME, COL_QSL_VIA, COL_GRIDSQUARE, COL_QTH, COL_IOTA, COL_TIME_ON, COL_STATE, COL_CNTY'); $this->db->where('COL_CALL', $callsign); $where = "COL_NAME != \"\"";