From 9434cb6fa6a62c0251126f29405e227603ed577d Mon Sep 17 00:00:00 2001 From: JackSun Date: Wed, 3 Aug 2022 13:15:11 +0800 Subject: [PATCH] update: spelling mistake --- code/modules | 2 +- code/tracker_collector.py | 14 +++++++------- docs/tracker公版方案功能接口.md | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/modules b/code/modules index 735d1c8..8602af9 160000 --- a/code/modules +++ b/code/modules @@ -1 +1 @@ -Subproject commit 735d1c8e5c7b606379be68c44386df4590f7f082 +Subproject commit 8602af964eeaef29b981baa8a9786ba0a8888a8b diff --git a/code/tracker_collector.py b/code/tracker_collector.py index da24cad..f0f7a8d 100644 --- a/code/tracker_collector.py +++ b/code/tracker_collector.py @@ -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) diff --git a/docs/tracker公版方案功能接口.md b/docs/tracker公版方案功能接口.md index a246970..4038755 100644 --- a/docs/tracker公版方案功能接口.md +++ b/docs/tracker公版方案功能接口.md @@ -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": {