GuidesAPI Reference
Guides

How to a request an indoor position

📘

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.

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

https://pos.ls.hereapi.com/positioning/v1/locate?desired=floor

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

Authorization: Bearer {YOUR_TOKEN}
Content-Type: application/json

Use the following POST body:

{
  "bt": [{
    "mac": "EE:01:02:00:00:06",
    "rss": -74
  }, {
    "mac": "EE:01:02:00:00:30",
    "rss": -75
  },{
    "mac": "EE:01:02:00:00:13",
    "rss": -76
  },{
    "mac": "EE:01:02:00:00:18",
    "rss": -77
  },{
    "mac": "EE:01:02:00:00:16",
    "rss": -79
  }]
}

The response looks as follows:

{
  "location": {
    "lng": 23.776022,
    "lat": 61.498145,
    "accuracy": 6,
    "floor": {
      "level": 2,
      "id": "DM_20325",
      "name":"P-Hämppi"
    }
  }
}

See Examples for more examples on request body data.

Related Information