How to get coordinates with WLAN
Note
HERE Network Positioning API v1 is in maintenance and is not actively developed. Use HERE Network Positioning API v2 to get the latest features and updates. To learn more, see the HERE Network Positioning API v2 Developer Guide.
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.
https://pos.ls.hereapi.com/positioning/v1/locate?apiKey={YOUR_API_KEY}You need to set request content type in the HTTP headers:
Content-Type: application/jsonThis POST request requires the following POST body.
{
"wlan": [
{"mac": "8C-1A-BF-20-66-AD"},
{"mac": "A0-E4-53-E9-66-A7"},
{"mac": "AC-4B-C8-34-F7-01"},
{"mac": "A0-21-95-57-79-06"},
{"mac": "00-18-56-51-54-FB"},
{"mac": "10-30-47-D2-54-55"},
{"mac": "B8-6B-23-09-87-B1"},
{"mac": "F4-55-95-11-2C-C1"}
]
}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 coordinatelong: WGS-84 compliant longitude coordinateaccuracy: Radius of the uncertainty circle around the position in meters
{
"location": {
"lat": 52.5185857,
"lng": 13.37622989,
"accuracy": 100
}
}Related Information
Updated last month