The following are the error codes:
| Code | Constant | Description |
|---|---|---|
| 0 | UNKNOWN_ERROR | The method failed to retrieve the location of the device due to an unknown error. |
| 1 | PERMISSION_DENIED | The method failed to retrieve the location of the device because the application does not have permission to use the Location Service. |
| 2 | POSITION_UNAVAILABLE | The location of the device could not be determined. |
| 3 | TIMEOUT | The method was unable to retrieve the location information within the specified maximum timeout interval. |