How to find a position with cell and WLAN
This section shows how to get WGS-84 compliant geographical coordinates based on LTE and WLAN information. For improved accuracy, it's recommended to always include both WLAN and cell measurements when available.
Request position
Send a POST request and specify the request body content type in the HTTP headers. Additionally, you must authenticate with an API key or a bearer token.
POST /v2/locate?apiKey={YOUR_API_KEY} HTTP/1.1
Host: positioning.hereapi.com
Content-Type: application/jsonNote
For the available authentication options, see the Identity and Access Management Developer Guide.
This POST request requires a body with both cellular and WLAN measurements formatted as specified in the API Reference.
For example, the body in this code block consists of a single LTE serving cell and three WLAN access points (APs):
{
"lte": [
{
"mcc": "244",
"mnc": "05",
"cid": 139265,
"rsrp": -52,
"rsrq": -7
}
],
"wlan": [
{
"mac": "00:18:39:59:8C:53",
"rss": -87
},
{
"mac": "00:21:55:61:F3:0A",
"rss": -86
},
{
"mac": "00:11:5C:6B:9A:00",
"rss": -71
}
]
}This is a sample response:
{
"location": {
"lat": 61.4469261,
"lng": 23.86456411,
"accuracy": 21
}
}This response contains horizontal geographical coordinates with following items:
lat: WGS-84 latitude coordinatelng: WGS-84 longitude coordinateaccuracy: radius of the uncertainty circle around the position in meters
Related information
Updated last month