1、广西交科推送数据增加设备经纬度
This commit is contained in:
parent
3d766c4b18
commit
97a7c96bd1
@ -71,8 +71,8 @@ public class GXJKForwarder extends Forwarder {
|
|||||||
data.setY(NumberUtils.scale(locationRecord.getRposn() * 0.001, 5));
|
data.setY(NumberUtils.scale(locationRecord.getRposn() * 0.001, 5));
|
||||||
data.setZ(NumberUtils.scale(locationRecord.getRposd() * 0.001, 5));
|
data.setZ(NumberUtils.scale(locationRecord.getRposd() * 0.001, 5));
|
||||||
// 经纬度
|
// 经纬度
|
||||||
data.setDevLng(locationRecord.getB562e());
|
data.setDevLng(locationRecord.getR9250e());
|
||||||
data.setDevLat(locationRecord.getB562n());
|
data.setDevLat(locationRecord.getR9250n());
|
||||||
sendNum++;
|
sendNum++;
|
||||||
}
|
}
|
||||||
String json = "#" + GsonUtil.toJson(sendData) + "!";
|
String json = "#" + GsonUtil.toJson(sendData) + "!";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user