errorcode-geoLocationManager.md 4.3 KB
Newer Older
S
shawn_he 已提交
1 2
# Location Subsystem Error Codes

3 4 5 6
> **NOTE**
>
> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).

S
shawn_he 已提交
7 8
## 3301000 Location Service Unavailable

S
shawn_he 已提交
9
**Error Information**
S
shawn_he 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Location service is unavailable.

**Description**

This error code is reported when the location service is unavailable and relevant APIs cannot be called.

**Possible Causes**

1. The location service fails to be started. As a result, the communication between the application and the location service fails, and the location service is unavailable.

2. The GNSS chip fails to be initialized, and thus the GNSS positioning function becomes invalid.

3. The network positioning service is abnormal, and thus the network positioning function becomes invalid.

**Solution**

Stop calling the API.

## 3301100 Location Service Unavailable Because of Switch Toggled Off

S
shawn_he 已提交
31
**Error Information**
S
shawn_he 已提交
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

The location switch is off.

**Description**

This error code is reported when the location service is unavailable because the service switch is toggled off.

**Possible Causes**

The location service switch is toggled off, which makes basic functions such as continuous positioning and immediate positioning unavailable.

**Solution**

Display a prompt asking for enabling the location service.

S
shawn_he 已提交
47
## 3301200 Failed to Obtain the Positioning Result
S
shawn_he 已提交
48

S
shawn_he 已提交
49
**Error Information**
S
shawn_he 已提交
50 51 52 53 54

Failed to obtain the geographical location.

**Description**

S
shawn_he 已提交
55
This error code is reported if the location service has failed, leading to a failure to obtain the positioning result.
S
shawn_he 已提交
56 57 58 59 60 61 62 63 64 65 66

**Possible Causes**

1. Positioning timed out because of weak GNSS signals.

2. Positioning timed out because the network positioning service is abnormal.

**Solution**

Initiate a positioning request again.

S
shawn_he 已提交
67
## 3301300 Query Failed During Reverse Geocoding
S
shawn_he 已提交
68

S
shawn_he 已提交
69
**Error Information**
S
shawn_he 已提交
70 71 72 73 74

Reverse geocoding query failed.

**Description**

S
shawn_he 已提交
75
This error code is reported if the query during reverse geocoding has failed.
S
shawn_he 已提交
76 77 78 79 80 81 82

**Possible Causes**

Network connection is poor, which makes the request fail to be sent from the device or the result fail to be returned from the cloud to the device.

**Solution**

S
shawn_he 已提交
83
Perform a query again.
S
shawn_he 已提交
84

S
shawn_he 已提交
85
## 3301400 Query Failed During Geocoding
S
shawn_he 已提交
86

S
shawn_he 已提交
87
**Error Information**
S
shawn_he 已提交
88 89 90 91 92

Geocoding query failed.

**Description**

S
shawn_he 已提交
93
This error code is reported if the query during geocoding has failed.
S
shawn_he 已提交
94 95 96 97 98 99 100

**Possible Causes**

Network connection is poor, which makes the request fail to be sent from the device or the result fail to be returned from the cloud to the device.

**Solution**

S
shawn_he 已提交
101
Perform a query again.
S
shawn_he 已提交
102

S
shawn_he 已提交
103
## 3301500 Area Information Query Failed
S
shawn_he 已提交
104

S
shawn_he 已提交
105
**Error Information**
S
shawn_he 已提交
106 107 108 109 110

Failed to query the area information.

**Description**

S
shawn_he 已提交
111
This error code is reported if the query of the area information (including the country code) has failed.
S
shawn_he 已提交
112 113 114 115 116 117 118 119 120

**Possible Causes**

The correct area information is not found.

**Solution**

Stop calling the API for querying the country code.

S
shawn_he 已提交
121
## 3301600 Geofence Operation Failed
S
shawn_he 已提交
122

S
shawn_he 已提交
123
**Error Information**
S
shawn_he 已提交
124 125 126 127 128

Failed to operate the geofence.

**Description**

S
shawn_he 已提交
129
This error code is reported if a geofence operation, for example, adding, deleting, pausing, or resuming a geofence, has failed.
S
shawn_he 已提交
130 131 132 133 134 135 136 137 138 139 140 141 142

**Possible Causes**

1. The GNSS chip does not support the geofence function.

2. The bottom-layer service logic is abnormal.

**Solution**

Stop calling the geofence operation API.

## 3301700 No Response to the Request

S
shawn_he 已提交
143
**Error Information**
S
shawn_he 已提交
144 145 146 147 148

No response to the request.

**Description**

S
shawn_he 已提交
149
This error code is reported if no response is received for an asynchronous request that requires a user to click a button for confirmation or requires a response from the GNSS chip or network server.
S
shawn_he 已提交
150 151 152 153 154 155 156 157 158 159 160 161

**Possible Causes**

1. The user does not click a button as required for confirmation.

2. The GNSS chip does not respond.

3. The network server does not respond.

**Solution**

Stop calling relevant APIs.
S
shawn_he 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183

## 3301800 Failed to Start Wi-Fi or Bluetooth Scanning

**Error Information**

Failed to start WiFi or Bluetooth scanning.

**Description**

This error code is reported if Wi-Fi or Bluetooth scanning fails to start.

**Possible Causes**

1. The Wi-Fi or Bluetooth service incurs an internal error.

2. Power consumption control is activated because of low battery level.

3. Wi-Fi or Bluetooth is not enabled.

**Solution**

Turn off Wi-Fi or Bluetooth, and then turn it on again.