Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
new-socketemulator
Commits
4c6f95bb
Commit
4c6f95bb
authored
Oct 20, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了急变道经纬度不准的问题
parent
9a29f55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
36 deletions
+38
-36
views/protocolTools/M_carSimulater_process.py
views/protocolTools/M_carSimulater_process.py
+38
-36
No files found.
views/protocolTools/M_carSimulater_process.py
View file @
4c6f95bb
...
@@ -496,8 +496,8 @@ def sendInsertAlarmEvent():
...
@@ -496,8 +496,8 @@ def sendInsertAlarmEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -546,8 +546,8 @@ def sendPulloutAlarmEvent():
...
@@ -546,8 +546,8 @@ def sendPulloutAlarmEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -596,8 +596,8 @@ def sendLowVoltageEvent():
...
@@ -596,8 +596,8 @@ def sendLowVoltageEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -646,8 +646,8 @@ def sendPowerOffEvent():
...
@@ -646,8 +646,8 @@ def sendPowerOffEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -708,8 +708,8 @@ def sendRapidlyAccelerateEvent():
...
@@ -708,8 +708,8 @@ def sendRapidlyAccelerateEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -770,8 +770,8 @@ def sendSharpSlowdownEvent():
...
@@ -770,8 +770,8 @@ def sendSharpSlowdownEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -832,8 +832,8 @@ def sendSharpTurnEvent():
...
@@ -832,8 +832,8 @@ def sendSharpTurnEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -887,8 +887,8 @@ def sendCollisionAlarmEvent():
...
@@ -887,8 +887,8 @@ def sendCollisionAlarmEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -942,8 +942,8 @@ def sendSetUpDefencesEvent():
...
@@ -942,8 +942,8 @@ def sendSetUpDefencesEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -997,8 +997,8 @@ def sendSetDownDefencesEvent():
...
@@ -997,8 +997,8 @@ def sendSetDownDefencesEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1052,8 +1052,8 @@ def sendLowGearHighSpeedEvent():
...
@@ -1052,8 +1052,8 @@ def sendLowGearHighSpeedEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1107,8 +1107,8 @@ def sendHighGearLowSpeedEvent():
...
@@ -1107,8 +1107,8 @@ def sendHighGearLowSpeedEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1162,8 +1162,8 @@ def sendSurplusOilAlarmEvent():
...
@@ -1162,8 +1162,8 @@ def sendSurplusOilAlarmEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1217,8 +1217,8 @@ def sendOverSpeedAlarmEvent():
...
@@ -1217,8 +1217,8 @@ def sendOverSpeedAlarmEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1272,8 +1272,8 @@ def sendTiredDrivingAlarmEvent():
...
@@ -1272,8 +1272,8 @@ def sendTiredDrivingAlarmEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1327,8 +1327,8 @@ def sendIdlingOverTimeEvent():
...
@@ -1327,8 +1327,8 @@ def sendIdlingOverTimeEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1382,8 +1382,8 @@ def sendIdlingOverTimeOverEvent():
...
@@ -1382,8 +1382,8 @@ def sendIdlingOverTimeOverEvent():
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
jdata
[
"DEV_ID"
]
=
params
[
"carId"
]
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
@@ -1441,6 +1441,8 @@ def sendRapidChangeLeftLanes():
...
@@ -1441,6 +1441,8 @@ def sendRapidChangeLeftLanes():
jdata
[
"gpsInfo"
][
"UTCTime"
]
=
curTime
jdata
[
"gpsInfo"
][
"UTCTime"
]
=
curTime
lng
=
service
.
getLongitude
()
lng
=
service
.
getLongitude
()
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"gpsInfo"
][
"latitude"
]
=
lat
jdata
[
"gpsInfo"
][
"longitude"
]
=
lng
jdata
[
"event"
][
"002A"
][
"lng"
]
=
lng
jdata
[
"event"
][
"002A"
][
"lng"
]
=
lng
jdata
[
"event"
][
"002A"
][
"lat"
]
=
lat
jdata
[
"event"
][
"002A"
][
"lat"
]
=
lat
obj
=
EventReport_protocol
(
data
=
jdata
)
obj
=
EventReport_protocol
(
data
=
jdata
)
...
@@ -1496,8 +1498,8 @@ def sendRapidChangeRightLanes():
...
@@ -1496,8 +1498,8 @@ def sendRapidChangeRightLanes():
lat
=
service
.
getLatitude
()
lat
=
service
.
getLatitude
()
jdata
[
"event"
][
"002A"
][
"lng"
]
=
lng
jdata
[
"event"
][
"002A"
][
"lng"
]
=
lng
jdata
[
"event"
][
"002A"
][
"lat"
]
=
lat
jdata
[
"event"
][
"002A"
][
"lat"
]
=
lat
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
ng
jdata
[
"gpsInfo"
][
"latitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
at
jdata
[
"gpsInfo"
][
"longitude"
]
=
l
ng
timeStamp
=
time
.
time
()
-
8
*
3600
timeStamp
=
time
.
time
()
-
8
*
3600
timeArray
=
time
.
localtime
(
timeStamp
)
timeArray
=
time
.
localtime
(
timeStamp
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
curTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment