api,location: give Tracking Area Code field in 3GPP location info

The "location area code" field is given in GSM/UMTS networks
exclusively. LTE networks use the concept of "tracking area code"
instead.

This patch updates the Location interface to Provide separate fields
for LAC and TAC, instead of giving TAC values in the LAC field.
This commit is contained in:
Aleksander Morgado
2018-08-08 21:46:28 +02:00
parent f58a652578
commit 7e6b4d7aa9
10 changed files with 147 additions and 46 deletions
+2
View File
@@ -509,10 +509,12 @@ get_location_process_reply (MMLocation3gpp *location_3gpp,
" 3GPP location | Mobile country code: '%u'\n"
" | Mobile network code: '%u'\n"
" | Location area code: '%lu'\n"
" | Tracking area code: '%lu'\n"
" | Cell ID: '%lu'\n",
mm_location_3gpp_get_mobile_country_code (location_3gpp),
mm_location_3gpp_get_mobile_network_code (location_3gpp),
mm_location_3gpp_get_location_area_code (location_3gpp),
mm_location_3gpp_get_tracking_area_code (location_3gpp),
mm_location_3gpp_get_cell_id (location_3gpp));
else
g_print (" -------------------------\n"