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 3ea31d49
authored
Apr 21, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化基站获取定位数据
1 parent
505b6b95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
View file @
3ea31d4
...
@@ -635,6 +635,13 @@ public class HdaoGpsComponent {
...
@@ -635,6 +635,13 @@ public class HdaoGpsComponent {
MobileBaseModel
mbm
=
new
MobileBaseModel
();
MobileBaseModel
mbm
=
new
MobileBaseModel
();
mbm
.
setLat
(
latlng
(
respHolder
.
value
.
gps
.
lat
));
mbm
.
setLat
(
latlng
(
respHolder
.
value
.
gps
.
lat
));
mbm
.
setLng
(
latlng
(
respHolder
.
value
.
gps
.
lng
));
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
]
+
""
);
double
[]
baiduGps
=
GpsCorrect
.
gpsToGoogle
(
Double
.
parseDouble
(
mbm
.
getLat
()),
Double
.
parseDouble
(
mbm
.
getLng
()));
mbm
.
setBlat
(
baiduGps
[
0
]
+
""
);
mbm
.
setBlng
(
baiduGps
[
1
]
+
""
);
mbm
.
setAddress
(
respHolder
.
value
.
gps
.
addr
);
mbm
.
setAddress
(
respHolder
.
value
.
gps
.
addr
);
return
mbm
;
return
mbm
;
}
}
...
...
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