summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-01 02:35:40 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-01 02:35:57 -0700
commit5b72d500356924a830ac577e5324a5d3540a29c2 (patch)
treed10ac62e4de3f93cfec4e5b7e32be69fc721a7ea
parentd7d65ef59bd9e54787fdebebe39ea0d8e1155769 (diff)
tbtnavi: fix typo of longitude
Fixed typo of longitude (was longitute) in code and configuration. Bug-AGL: SPEC-2933 Change-Id: I2b49d8c7d8ff581c0c7caeff43e50c40d603c127 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--README.md4
-rw-r--r--app/file_operation.cpp12
-rw-r--r--app/file_operation.h4
3 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index d953318..4b97102 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ Please set mapAccessToken, mapStyleUrl, speed, interval, latitude and longitude
- mapAccessToken sets Access token provided by Mapbox.
- speed sets vehicle speed in km/h.
- interval sets the screen update interval in milliseconds.
-- latitude, longitute sets the current position at application start.
+- latitude, longitude sets the current position at application start.
- mapStyleUrls sets Mapbox style URLs.
### Example /etc/naviconfig.ini
@@ -34,7 +34,7 @@ example
"speed":60,
"interval":100,
"latitude":36.1363,
- "longitute":-115.151,
+ "longitude":-115.151,
"mapStyleUrls":"mapbox://styles/mapbox/dark-v9"
}
```
diff --git a/app/file_operation.cpp b/app/file_operation.cpp
index 819cce5..8da7227 100644
--- a/app/file_operation.cpp
+++ b/app/file_operation.cpp
@@ -14,7 +14,7 @@ void File_Operation::initFileOperation(){
m_car_speed = 60; // set default Km/h
m_update_interval = 100; // set default millisecond
m_start_latitude = 36.136261; // set default coordinate Westgate
- m_start_longitute = -115.151254;
+ m_start_longitude = -115.151254;
m_enable_osm = false;
m_mapStyleUrls = "mapbox://styles/mapbox/streets-v10"; // set default map style
@@ -49,10 +49,10 @@ void File_Operation::initFileOperation(){
return;
}
- if(jsonObj.contains("longitute")){
- m_start_longitute = jsonObj["longitute"].toDouble();
+ if(jsonObj.contains("longitude")){
+ m_start_longitude = jsonObj["longitude"].toDouble();
}else{
- fprintf(stderr,"Failed to find longitute data \"%s\": %m", qPrintable(NAVI_CONFIG_FILEPATH));
+ fprintf(stderr,"Failed to find longitude data \"%s\": %m", qPrintable(NAVI_CONFIG_FILEPATH));
return;
}
@@ -95,8 +95,8 @@ int File_Operation::getUpdateInterval(){
double File_Operation::getStartLatitude(){
return m_start_latitude;
}
-double File_Operation::getStartLongitute(){
- return m_start_longitute;
+double File_Operation::getStartLongitude(){
+ return m_start_longitude;
}
QString File_Operation::getMapStyleUrls() {
return m_mapStyleUrls;
diff --git a/app/file_operation.h b/app/file_operation.h
index 962c506..8d28bfb 100644
--- a/app/file_operation.h
+++ b/app/file_operation.h
@@ -21,7 +21,7 @@ class File_Operation: public QObject{
double m_car_speed; // set Km/h
int m_update_interval; // set millisecond
double m_start_latitude;
- double m_start_longitute;
+ double m_start_longitude;
bool m_enable_osm;
QString m_mapStyleUrls;
@@ -33,7 +33,7 @@ public:
Q_INVOKABLE double getCarSpeed();
Q_INVOKABLE int getUpdateInterval();
Q_INVOKABLE double getStartLatitude();
- Q_INVOKABLE double getStartLongitute();
+ Q_INVOKABLE double getStartLongitude();
Q_INVOKABLE QString getMapStyleUrls();
Q_INVOKABLE bool isOSMEnabled() { return m_enable_osm; };