Location lat/lng and x/y are showing similar for all devices

Stallion
New here

Location lat/lng and x/y are showing similar for all devices

I am developing a custom-made dashboard that should show a heatmap based on the location data received through scanning API. The JSON data which I receive to my server contains the "same X and Y" values for all the observations. Having the same X/Y values, all devices show on the same point on the map which does not look good. Same is the case with the lat/lng parameters (as shown in the sample of two observations). Can anyone please help me find out why all the x/y and lat/lng are same?

 

DATA OF TWO DEVICES

 

{
"ipv4":null,
"location":{
"lat":43.67050438722674,
"lng":-79.43516895174982,
"unc":49.0,
"x":[
2.609648886043864
],
"y":[
9.945760958902572
]
},
"seenTime":"2019-08-03T21:25:19Z",
"ssid":null,
"os":"iOS",
"clientMac":"d4:90:9c:45:12:e8",
"seenEpoch":1564867519,
"rssi":6,
"ipv6":null,
"manufacturer":"Apple"
},
{
"ipv4":null,
"location":{
"lat":43.67050438722674,
"lng":-79.43516895174982,
"unc":49.0,
"x":[
2.609648886043864
],
"y":[
9.945760958902572
]
},
"seenTime":"2019-08-03T21:25:24Z",
"ssid":null,
"os":null,
"clientMac":"dc:ef:ca:2c:64:14",
"seenEpoch":1564867524,
"rssi":16,
"ipv6":null,
"manufacturer":"Murata Manufacturing"
}

 

 

NOTE: I am using one AP and placed a floor plan in the dashboard as well.

 

Thanks in advance

4 Replies 4
PhilipDAth
Kind of a big deal
Kind of a big deal

With only one AP there is no way for the system to do triangulation. 

 

Ideally you want clients to be seen by four APs, minimum of three. 

Stallion
New here

Thanks for replying. Just wondering why the heatmap inside the dashboard showing the locations of devices on the map in a practical way. As showing in the screenshot from the dashboard below. On the other hand, the info which I receive in the API for the same network gives similar lat/lng and X/Y which cause all the devices to plot on top of each other. If three devices are required to know the location then how is the following distribution possible in the dashboard? Just being very much curious. 

 

 

1572299849737.png

PhilipDAth
Kind of a big deal
Kind of a big deal

The dashboard is probably just using the rssi value to establish a distance from the AP, which will be a circle since it can not be narrowed down (so can not be presented using (x,y) co-ordinates), and ramdonly placing the client somewhere on that circle.

Nash
Kind of a big deal

@PhilipDAth has it in one. The clue is in the name: can't triangulate unless you've got points for the triangle to form. Your client goes in the center of that triangle.

Get notified when there are additional replies to this discussion.