public class AMapLocationQualityReport
extends java.lang.Object
implements java.lang.Cloneable
AutoNavi Positioning Quality Report, returned with the positioning result Created by hongming.wang on 2017/8/29.
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
GPS_STATUS_MODE_SAVING
卫星定位状态--选择的定位模式中不包含卫星定位
Android 4.4以上的手机设置中开启了定位(位置)服务,但是选择的模式为省电模式,不包含卫星定位
建议选择包含gps定位的模式(例如:高精度、仅设备) Satellite Positioning Status--The selected positioning mode does not include satellite positioning The location service is turned on in the settings of phones above Android 4.4, but the selected mode is power saving mode, which does not include satellite positioning It is recommended to select a mode that includes GPS positioning (e.g., High Accuracy, Device Only) |
static int |
GPS_STATUS_NOGPSPERMISSION
卫星定位状态--没有GPS定位权限
如果没有GPS定位权限无法进行卫星定位, 建议在安全软件中授予GPS定位权限
Satellite Positioning Status--No GPS positioning permission If there is no GPS positioning permission, satellite positioning cannot be performed. |
static int |
GPS_STATUS_NOGPSPROVIDER
卫星定位状态--手机中没有GPS Provider,无法进行卫星定位
Satellite Positioning Status--No GPS Provider in the phone, unable to perform satellite positioning |
static int |
GPS_STATUS_OFF
卫星定位状态--GPS开关关闭
建议开启GPS开关,提高定位质量
Android 4.4以下的手机是gps开关关闭-建议开启gps开关 Android 4.4以上的手机设置中关闭了定位(位置)服务-建议开启定位服务,并选择包含gps的定位模式 Satellite Positioning Status--GPS switch is off It is recommended to turn on the GPS switch to improve positioning quality For phones below Android 4.4, the GPS switch is off - it is recommended to turn on the GPS switch For phones above Android 4.4, the location service is turned off in the settings - it is recommended to turn on the location service and select a positioning mode that includes GPS |
static int |
GPS_STATUS_OK
卫星定位状态--正常
Satellite Positioning Status--Normal |
| 构造器和说明 |
|---|
AMapLocationQualityReport() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getAdviseMessage()
获取提示语义,状态良好时,返回的是内容为空
根据当前的质量报告,给出相应的建议
Get prompt semantics, when the status is good, the returned content is empty Provide corresponding suggestions based on the current quality report |
int |
getGPSSatellites()
获取当前的卫星数, 只有在非低功耗模式下此值才有效
Get the current number of satellites, this value is only valid in non-low power mode |
int |
getGPSStatus()
获取卫星状态信息,只有在非低功耗模式下此值才有效
Get satellite status information, this value is only valid in non-low power mode |
long |
getNetUseTime()
获取网络定位时的网络耗时 单位:毫秒
Get network time consumption during network positioning, unit: milliseconds |
java.lang.String |
getNetworkType()
获取网络连接类型(2G、3G、4G、WIFI)
Get Network Connection Type (2G, 3G, 4G, WIFI) |
boolean |
isInstalledHighDangerMockApp()
是否安装了高危位置模拟软件
首次定位可能没有结果
Is high-risk location simulation software installed First positioning may have no result |
boolean |
isWifiAble()
wifi开关是否打开
如果wifi关闭建议打开wifi开关,提高定位质量
Is the Wi-Fi switch on If the Wi-Fi is off, it is recommended to turn on the Wi-Fi switch to improve positioning quality |
void |
setGPSSatellites(int satellites) |
void |
setGpsStatus(int gpsStatus) |
void |
setInstallHighDangerMockApp(boolean isInstall)
设置是否安装了高危位置模拟软件
Set whether high-risk location simulation software is installed |
void |
setLocationMode(AMapLocationClientOption.AMapLocationMode locationMode)
设置定位模式
Set Positioning Mode |
void |
setNetUseTime(long netUseTime)
设置网络定位时的网络耗时
Set network time consumption during network positioning |
void |
setNetworkType(java.lang.String networkType)
设置网络类型
Set Network Type |
void |
setWifiAble(boolean isWifiAble) |
public static final int GPS_STATUS_OK
public static final int GPS_STATUS_NOGPSPROVIDER
public static final int GPS_STATUS_OFF
建议开启GPS开关,提高定位质量
Android 4.4以下的手机是gps开关关闭-建议开启gps开关
Android 4.4以上的手机设置中关闭了定位(位置)服务-建议开启定位服务,并选择包含gps的定位模式
It is recommended to turn on the GPS switch to improve positioning quality
For phones below Android 4.4, the GPS switch is off - it is recommended to turn on the GPS switch
For phones above Android 4.4, the location service is turned off in the settings - it is recommended to turn on the location service and select a positioning mode that includes GPS
public static final int GPS_STATUS_MODE_SAVING
Android 4.4以上的手机设置中开启了定位(位置)服务,但是选择的模式为省电模式,不包含卫星定位
建议选择包含gps定位的模式(例如:高精度、仅设备)
The location service is turned on in the settings of phones above Android 4.4, but the selected mode is power saving mode, which does not include satellite positioning
It is recommended to select a mode that includes GPS positioning (e.g., High Accuracy, Device Only)
public static final int GPS_STATUS_NOGPSPERMISSION
如果没有GPS定位权限无法进行卫星定位, 建议在安全软件中授予GPS定位权限
If there is no GPS positioning permission, satellite positioning cannot be performed. It is recommended to grant GPS positioning permission in security software
public void setWifiAble(boolean isWifiAble)
wifiOn - public void setGpsStatus(int gpsStatus)
gpsStatus - public void setGPSSatellites(int satellites)
satellites - public boolean isWifiAble()
如果wifi关闭建议打开wifi开关,提高定位质量
If the Wi-Fi is off, it is recommended to turn on the Wi-Fi switch to improve positioning quality
public int getGPSStatus()
public int getGPSSatellites()
public java.lang.String getNetworkType()
public void setNetworkType(java.lang.String networkType)
networkType - public long getNetUseTime()
public void setNetUseTime(long netUseTime)
netUseTime - public void setInstallHighDangerMockApp(boolean isInstall)
isInstall - public boolean isInstalledHighDangerMockApp()
public void setLocationMode(AMapLocationClientOption.AMapLocationMode locationMode)
locationMode - public java.lang.String getAdviseMessage()
根据当前的质量报告,给出相应的建议
Provide corresponding suggestions based on the current quality report