Added US State and County to the local data look up for the API lookup function

这个提交包含在:
Peter Goodhall 2020-04-07 00:07:17 +01:00
父节点 5042ce3f8c
当前提交 f6d8d02357
共有 2 个文件被更改,包括 3 次插入1 次删除

查看文件

@ -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']);

查看文件

@ -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 != \"\"";