Locate

To request WGS-84 compliant geocoordinates representing a location together with floor information, send the following request using the HTTP POST method. Make sure to include 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

Use the following POST body:

{
  "gsm": [
    {
      "mcc": 262,
      "mnc": 1,
      "lac": 5126,
      "cid": 21857
    }
  ]
}

Note

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

The response looks as follows:

{
  "location": {
    "lat": 52.5187469,
    "lng": 13.37551117,
    "accuracy": 338
  }
}

Info

See Use Cases for more examples on request body data.

results matching ""

    No results matching ""