增加移动位置处理支持

This commit is contained in:
Lawrence 2021-01-27 15:29:51 +08:00
parent b915e7bc37
commit 84ecc89f8a
3 changed files with 192 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package com.genersoft.iot.vmp.gb28181.bean;
public class BaiduPoint {
String bdLng;
String bdLat;
public String getBdLng() {
return bdLng;
}
public void setBdLng(String bdLng) {
this.bdLng = bdLng;
}
public String getBdLat() {
return bdLat;
}
public void setBdLat(String bdLat) {
this.bdLat = bdLat;
}
}

View File

@ -0,0 +1,166 @@
package com.genersoft.iot.vmp.gb28181.bean;
/**
* @Description: 移动位置bean
* @author: lawrencehj
* @date: 2021年1月23日
*/
public class MobilePosition {
/**
* 设备Id
*/
private String deviceId;
/**
* 设备名称
*/
private String deviceName;
/**
* 通知时间
*/
private String time;
/**
* 经度
*/
private double longitude;
/**
* 纬度
*/
private double latitude;
/**
* 海拔高度
*/
private double altitude;
/**
* 速度
*/
private double speed;
/**
* 方向
*/
private double direction;
/**
* 位置信息上报来源Mobile PositionGPS Alarm
*/
private String reportSource;
/**
* 国内地理坐标系GCJ-02 / BD-09
*/
private String GeodeticSystem;
/**
* 国内坐标系经度坐标
*/
private String cnLng;
/**
* 国内坐标系纬度坐标
*/
private String cnLat;
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceName() {
return deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getAltitude() {
return altitude;
}
public void setAltitude(double altitude) {
this.altitude = altitude;
}
public double getSpeed() {
return speed;
}
public void setSpeed(double speed) {
this.speed = speed;
}
public double getDirection() {
return direction;
}
public void setDirection(double direction) {
this.direction = direction;
}
public String getReportSource() {
return reportSource;
}
public void setReportSource(String reportSource) {
this.reportSource = reportSource;
}
public String getGeodeticSystem() {
return GeodeticSystem;
}
public void setGeodeticSystem(String geodeticSystem) {
GeodeticSystem = geodeticSystem;
}
public String getCnLng() {
return cnLng;
}
public void setCnLng(String cnLng) {
this.cnLng = cnLng;
}
public String getCnLat() {
return cnLat;
}
public void setCnLat(String cnLat) {
this.cnLat = cnLat;
}
}

View File

@ -27,6 +27,8 @@ public class DeferredResultHolder {
public static final String CALLBACK_CMD_STOP = "CALLBACK_STOP";
public static final String CALLBACK_CMD_MOBILEPOSITION = "CALLBACK_MOBILEPOSITION";
private Map<String, DeferredResult> map = new ConcurrentHashMap<String, DeferredResult>();
public void put(String key, DeferredResult result) {