Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 234a148c
authored
Apr 24, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.6.0' of
http://192.168.3.233:8090/eshiled-new/ne-shield-devicemonitor
into v1.6.0
2 parents
f061ea54
40a1eaa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/GpsBsLocationServiceImpl.java
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
View file @
234a148
...
...
@@ -636,12 +636,12 @@ public class HdaoGpsComponent {
mbm
.
setLat
(
latlng
(
respHolder
.
value
.
gps
.
lat
));
mbm
.
setLng
(
latlng
(
respHolder
.
value
.
gps
.
lng
));
double
[]
googleGps
=
GpsCorrect
.
gpsToGoogle
(
Double
.
parseDouble
(
mbm
.
getLat
()),
Double
.
parseDouble
(
mbm
.
getLng
()));
mbm
.
setElat
(
googleGps
[
0
]
+
""
);
mbm
.
setElng
(
googleGps
[
1
]
+
""
);
mbm
.
setElat
(
latlng
(
googleGps
[
0
])
);
mbm
.
setElng
(
latlng
(
googleGps
[
1
])
);
double
[]
baiduGps
=
GpsCorrect
.
gpsToGoogle
(
Double
.
parseDouble
(
mbm
.
getLat
()),
Double
.
parseDouble
(
mbm
.
getLng
()));
mbm
.
setBlat
(
baiduGps
[
0
]
+
""
);
mbm
.
setBlng
(
baiduGps
[
1
]
+
""
);
mbm
.
setBlat
(
latlng
(
baiduGps
[
0
])
);
mbm
.
setBlng
(
latlng
(
baiduGps
[
1
])
);
mbm
.
setAddress
(
respHolder
.
value
.
gps
.
addr
);
return
mbm
;
}
...
...
@@ -658,6 +658,18 @@ public class HdaoGpsComponent {
return
df
.
format
((
double
)
value
/
1000000
);
}
/**
* 数字转经纬度
*
* @param value
* @param value
* @return
*/
public
String
latlng
(
double
value
)
{
java
.
text
.
DecimalFormat
df
=
new
java
.
text
.
DecimalFormat
(
"#.000000"
);
return
df
.
format
(
value
);
}
public
MobileBaseModel
analyzeByJuhe
(
String
lac
,
String
cell
)
{
String
juheUrl
=
PropertiesUtils
.
getProperty
(
"bs.juhe.url"
);
...
...
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/GpsBsLocationServiceImpl.java
View file @
234a148
...
...
@@ -411,6 +411,7 @@ public class GpsBsLocationServiceImpl implements GpsBsLocationService {
BeanUtils
.
copyProperties
(
mbModel
,
location
);
location
.
setStoreTime
(
bsModel
.
getStoreTime
());
location
.
setDateTime
(
bsModel
.
getTime
());
location
.
setSpeed
(
"0"
);
retList
.
add
(
location
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment