GuidesAPI Reference
Guides

How to request a position

To request WGS-84 compliant geocoordinates representing a location, send the following request using HTTP POST.

📘

Note

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

https://pos.ls.hereapi.com/positioning/v1/locate?apiKey={YOUR_API_KEY}

Make sure to include request content type in the HTTP headers:

Content-Type: application/json

Use the following POST body:

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

The response looks as follows:

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

See Examples for more examples on request body data.

Related Information