Commit 84ecc89f8a95f4cb6175230764e3e1ac19f16af3
1 parent
b915e7bc
增加移动位置处理支持
Showing
3 changed files
with
192 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/bean/BaiduPoint.java
0 → 100644
| 1 | +package com.genersoft.iot.vmp.gb28181.bean; | ||
| 2 | + | ||
| 3 | +public class BaiduPoint { | ||
| 4 | + | ||
| 5 | + String bdLng; | ||
| 6 | + | ||
| 7 | + String bdLat; | ||
| 8 | + | ||
| 9 | + public String getBdLng() { | ||
| 10 | + return bdLng; | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + public void setBdLng(String bdLng) { | ||
| 14 | + this.bdLng = bdLng; | ||
| 15 | + } | ||
| 16 | + | ||
| 17 | + public String getBdLat() { | ||
| 18 | + return bdLat; | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + public void setBdLat(String bdLat) { | ||
| 22 | + this.bdLat = bdLat; | ||
| 23 | + } | ||
| 24 | +} |
src/main/java/com/genersoft/iot/vmp/gb28181/bean/MobilePosition.java
0 → 100644
| 1 | +package com.genersoft.iot.vmp.gb28181.bean; | ||
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * @Description: 移动位置bean | ||
| 5 | + * @author: lawrencehj | ||
| 6 | + * @date: 2021年1月23日 | ||
| 7 | + */ | ||
| 8 | + | ||
| 9 | +public class MobilePosition { | ||
| 10 | + /** | ||
| 11 | + * 设备Id | ||
| 12 | + */ | ||
| 13 | + private String deviceId; | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 设备名称 | ||
| 17 | + */ | ||
| 18 | + private String deviceName; | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 通知时间 | ||
| 22 | + */ | ||
| 23 | + private String time; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 经度 | ||
| 27 | + */ | ||
| 28 | + private double longitude; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 纬度 | ||
| 32 | + */ | ||
| 33 | + private double latitude; | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 海拔高度 | ||
| 37 | + */ | ||
| 38 | + private double altitude; | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 速度 | ||
| 42 | + */ | ||
| 43 | + private double speed; | ||
| 44 | + | ||
| 45 | + /** | ||
| 46 | + * 方向 | ||
| 47 | + */ | ||
| 48 | + private double direction; | ||
| 49 | + | ||
| 50 | + /** | ||
| 51 | + * 位置信息上报来源(Mobile Position、GPS Alarm) | ||
| 52 | + */ | ||
| 53 | + private String reportSource; | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 国内地理坐标系(GCJ-02 / BD-09) | ||
| 57 | + */ | ||
| 58 | + private String GeodeticSystem; | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * 国内坐标系:经度坐标 | ||
| 62 | + */ | ||
| 63 | + private String cnLng; | ||
| 64 | + | ||
| 65 | + /** | ||
| 66 | + * 国内坐标系:纬度坐标 | ||
| 67 | + */ | ||
| 68 | + private String cnLat; | ||
| 69 | + | ||
| 70 | + | ||
| 71 | + public String getDeviceId() { | ||
| 72 | + return deviceId; | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + public void setDeviceId(String deviceId) { | ||
| 76 | + this.deviceId = deviceId; | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + public String getDeviceName() { | ||
| 80 | + return deviceName; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + public void setDeviceName(String deviceName) { | ||
| 84 | + this.deviceName = deviceName; | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + public String getTime() { | ||
| 88 | + return time; | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + public void setTime(String time) { | ||
| 92 | + this.time = time; | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + public double getLongitude() { | ||
| 96 | + return longitude; | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + public void setLongitude(double longitude) { | ||
| 100 | + this.longitude = longitude; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + public double getLatitude() { | ||
| 104 | + return latitude; | ||
| 105 | + } | ||
| 106 | + | ||
| 107 | + public void setLatitude(double latitude) { | ||
| 108 | + this.latitude = latitude; | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + public double getAltitude() { | ||
| 112 | + return altitude; | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + public void setAltitude(double altitude) { | ||
| 116 | + this.altitude = altitude; | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public double getSpeed() { | ||
| 120 | + return speed; | ||
| 121 | + } | ||
| 122 | + | ||
| 123 | + public void setSpeed(double speed) { | ||
| 124 | + this.speed = speed; | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + public double getDirection() { | ||
| 128 | + return direction; | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + public void setDirection(double direction) { | ||
| 132 | + this.direction = direction; | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + public String getReportSource() { | ||
| 136 | + return reportSource; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + public void setReportSource(String reportSource) { | ||
| 140 | + this.reportSource = reportSource; | ||
| 141 | + } | ||
| 142 | + | ||
| 143 | + public String getGeodeticSystem() { | ||
| 144 | + return GeodeticSystem; | ||
| 145 | + } | ||
| 146 | + | ||
| 147 | + public void setGeodeticSystem(String geodeticSystem) { | ||
| 148 | + GeodeticSystem = geodeticSystem; | ||
| 149 | + } | ||
| 150 | + | ||
| 151 | + public String getCnLng() { | ||
| 152 | + return cnLng; | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + public void setCnLng(String cnLng) { | ||
| 156 | + this.cnLng = cnLng; | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public String getCnLat() { | ||
| 160 | + return cnLat; | ||
| 161 | + } | ||
| 162 | + | ||
| 163 | + public void setCnLat(String cnLat) { | ||
| 164 | + this.cnLat = cnLat; | ||
| 165 | + } | ||
| 166 | +} |
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java
| @@ -27,6 +27,8 @@ public class DeferredResultHolder { | @@ -27,6 +27,8 @@ public class DeferredResultHolder { | ||
| 27 | 27 | ||
| 28 | public static final String CALLBACK_CMD_STOP = "CALLBACK_STOP"; | 28 | public static final String CALLBACK_CMD_STOP = "CALLBACK_STOP"; |
| 29 | 29 | ||
| 30 | + public static final String CALLBACK_CMD_MOBILEPOSITION = "CALLBACK_MOBILEPOSITION"; | ||
| 31 | + | ||
| 30 | private Map<String, DeferredResult> map = new ConcurrentHashMap<String, DeferredResult>(); | 32 | private Map<String, DeferredResult> map = new ConcurrentHashMap<String, DeferredResult>(); |
| 31 | 33 | ||
| 32 | public void put(String key, DeferredResult result) { | 34 | public void put(String key, DeferredResult result) { |