Find Position with WLAN

User Story

The user wants to determine the WGS-84 compliant coordinates defined by the WLAN information in the POST body.

Request

The code block below demonstrates a POST request to get the geocoordinates defined by the WLAN information in the POST body. You need to set the request content type in the HTTP headers.

Global
Azure
POST /v2/locate?apiKey={YOUR_API_KEY} HTTP/1.1
Host: positioning.hereapi.com
Content-Type: application/json
POST /v2/locate?apiKey={YOUR_API_KEY} HTTP/1.1
Host: az.positioning.hereapi.com
Content-Type: application/json

This POST request requires the following POST body.

{
  "wlan": [
    { "mac": "00:18:39:59:8C:53" },
    { "mac": "00:21:55:61:F3:0A" },
    { "mac": "00:11:5C:6B:9A:00" },
    { "mac": "00:21:55:61:EE:94" },
    { "mac": "00:21:55:61:EE:DC" },
    { "mac": "00:23:04:C9:9D:F4" }
  ]
}

Note

This example uses a HERE API Key to authenticate your request. For the available authentication options, see the Identity & Access Management Developer Guide.

Response

The response to the request contains:

  • lat: WGS-84 compliant latitude coordinate
  • lng: WGS-84 compliant longitude coordinate
  • accuracy: Radius of the uncertainty circle around the position in meters
{
  "location": {
    "lat": 61.44692614,
    "lng": 23.86456415,
    "accuracy": 42
  }
}

results matching ""

    No results matching ""