mirror of
https://gitee.com/qpy-solutions/tracker-v2.git
synced 2025-05-19 02:58:25 +08:00
update: spelling mistake
This commit is contained in:
parent
3989ff79fa
commit
9434cb6fa6
@ -1 +1 @@
|
||||
Subproject commit 735d1c8e5c7b606379be68c44386df4590f7f082
|
||||
Subproject commit 8602af964eeaef29b981baa8a9786ba0a8888a8b
|
@ -237,13 +237,13 @@ class Collector(Singleton):
|
||||
gga_data = self.__gps_match.GxGGA(loc_data)
|
||||
data = {}
|
||||
if gga_data:
|
||||
Longtitude, Latitude, Altitude = self.__locator.gps.read_coordinates(loc_data)
|
||||
Longitude, Latitude, Altitude = self.__locator.gps.read_coordinates(loc_data)
|
||||
if map_coordinate_system == "GCJ02":
|
||||
Longtitude, Latitude = self.__locator.wgs84togcj02(Longtitude, Latitude)
|
||||
Longitude, Latitude = self.__locator.wgs84togcj02(Longitude, Latitude)
|
||||
if Latitude:
|
||||
data["Latitude"] = float(Latitude)
|
||||
if Longtitude:
|
||||
data["Longtitude"] = float(Longtitude)
|
||||
if Longitude:
|
||||
data["Longitude"] = float(Longitude)
|
||||
if Altitude:
|
||||
data["Altitude"] = float(Altitude)
|
||||
if data:
|
||||
@ -252,12 +252,12 @@ class Collector(Singleton):
|
||||
elif loc_method in (0x2, 0x4):
|
||||
if loc_data:
|
||||
if loc_data[0]:
|
||||
Longtitude = loc_data[0][0]
|
||||
Longitude = loc_data[0][0]
|
||||
Latitude = loc_data[0][1]
|
||||
if map_coordinate_system == "GCJ02":
|
||||
Longtitude, Latitude = self.__locator.wgs84togcj02(Longtitude, Latitude)
|
||||
Longitude, Latitude = self.__locator.wgs84togcj02(Longitude, Latitude)
|
||||
res["GeoLocation"] = {
|
||||
"Longtitude": Longtitude,
|
||||
"Longitude": Longitude,
|
||||
"Latitude": Latitude,
|
||||
# "Altitude": 0.0,
|
||||
"CoordinateSystem": (1 if map_coordinate_system == "WGS84" else 2)
|
||||
|
@ -836,7 +836,7 @@ collector.device_data_get(power_switch=True)
|
||||
"GeoLocation": {
|
||||
"CoordinateSystem": 1,
|
||||
"Latitude": 31.82249895,
|
||||
"Longtitude": 117.1155386833333,
|
||||
"Longitude": 117.1155386833333,
|
||||
"Altitude": 147.136
|
||||
},
|
||||
"device_module_status": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user