# TPS JSON API response
Source: [https://docs.qualcomm.com/doc/80-42204-1/topic/19_TPS_JSON_API_response.html](https://docs.qualcomm.com/doc/80-42204-1/topic/19_TPS_JSON_API_response.html)
The Terrestrial Positioning Service (TPS) JSON API response is the response to the [TPS JSON API request](https://docs.qualcomm.com/doc/80-42204-1/topic/4_TPS_JSON_API_request.html). The response
includes latitude, longitude, and HPE (accuracy) determined from the request
inputs.
Note: Qualcomm
Technologies, Inc. (QTI) uses multiple methods and sources for positioning IPs.
Hence, HPE (accuracy) may not be returned in all responses.
### Syntax
Requests that are successful return an HTTP 200 response status and a response body
as follows:
{
"location": {
"lat": 42.297002,
"lng": -71.233323
},
"accuracy": 18,
"nap": 0,
"ncell": 0,
"nlac": 0,
"nsat": 9,
"nble": 0,
"source": "gnss",
"streetAddress": {
"streetNumber": 64,
"addressLine": "Farnsworth St",
"neighborhood": "Beantown",
"city": "Boston",
"metro1": "Boston",
"metro2": "Boston County",
"postalCode": "02210",
"county": "Suffolk",
"region": "North East",
"stateCode": "MA",
"stateName": "Massachusetts",
"countryCode": "US",
"countryName": "United States"
}
}
Copy to clipboard
### Parameters
| Parameter | Parameter | Parameter | Description |
| --- | --- | --- | --- |
| `location` | `location` | `location` | The position of the device. |
| `accuracy` | `accuracy` | `accuracy` | Estimates HPE of the location, in meters, when
`hpeConfidence` is set to 68% (default) or 95% in
the API request.
Note: The default 68%
confidence is supported in TPS v2.28 and later.
For 95% confidence, set `hpeConfidence` to 95 in
the location request. |
| `nap` | `nap` | `nap` | Number of AP scans used to determine location.
A value is
returned only if `includeBeaconCounts` is set to
`true` in the API request. |
| `ncell` | `ncell` | `ncell` | Number of cell scans used to determine location.
A value is
returned only if `includeBeaconCounts` is set to
`true` in the API request. |
| `nlac` | `nlac` | `nlac` | Number of Location Area Codes (LACs) used to determine location.
A value is returned only if
`includeBeaconCounts` is set to
`true` in the API request. |
| `nsat` | `nsat` | `nsat` | Number of satellites in the GPS location used to determine
location. In case of cell fallback, this value is greater than
0.
A value is returned only if `includeBeaconCounts`
is set to `true` in the API request. |
| `nble` | `nble` | `nble` | Number of BLE scans used to determine location.
A value is
returned only if `includeBeaconCounts` is set to
`true` in the API request. |
| `source` | `source` | `source` | Beacon type used to determine to location.
A value is
returned only if `includeLocationSource` is set
to `true` in the API request. Values can be:
unknowncellwifignssblerfpmhybrid (scans of multiple beacon types