I'm creating an app that uses Google's Geolocation API, as documented here.
As part of the POST request I need to send to their API, I need to include The mobile radio type, radioType
. The question of how to receive that has already been asked and answered here.
My question is as follows:
The telephoneManager.getNetworkType()
function that I'm apparently supposed to use returns one of 18 values, documented as constants here.
Does that mean that the radioType
as described by Google's geolocation API really can be 18 different values? So if it turns out that my radio type is not one of the four they support (GSM, LTE, CDMA or WCDMA), I'm simply out of luck and will have to suffer the loss of accuracy from not including radioType
in my request?
I have a feeling that I'm mixing up the terms radio type
and network type
somehow, the documentation is a bit confusing. Any help would be greatly appreciated.
Your phone can have 4 different radio types, GSM, CDMA, WCDMA, and LTE. But each radio type can have different network types.
The 2G radio (GSM/CDMA) can have the following network types:
The 3G radios (WCDMA) can have:
The 4G radio (LTE) can have:
So yes, you have to send the radio type and not the network type, which means there are only 4 possible values as shown in the Google API docs.
You can refer to this answer for mapping the network type to a radio type.