diff options
author | Albin Olsson <albin.olsson@cybercom.com> | 2013-11-15 10:39:45 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-18 08:45:14 +0100 |
commit | 59922ec4e84aa35ee7ffc8bacf940745467700fe (patch) | |
tree | 38f1648a7efe217178c16ac9c62108a353af8c28 /src/plugins/geoservices/osm/qgeoroutereplyosm.cpp | |
parent | 249067c698f02b7317a107e6636abf1492c6a888 (diff) | |
download | qtlocation-59922ec4e84aa35ee7ffc8bacf940745467700fe.tar.gz |
Fix drawing of Open Street Map routes.
The coordinates for open street map routes were off by a factor of ten. It
seems that the route data generated has changed since this code was
written.
Task-number: QTBUG-33849
Change-Id: I3996963aa2206c379946ca7aafb15f0104d0fd8a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/plugins/geoservices/osm/qgeoroutereplyosm.cpp')
-rw-r--r-- | src/plugins/geoservices/osm/qgeoroutereplyosm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp index bf3487f7..f3cae726 100644 --- a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp +++ b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp @@ -73,9 +73,9 @@ static QList<QGeoCoordinate> parsePolyline(const QByteArray &data) int diff = (value & 1) ? ~(value >> 1) : (value >> 1); if (parsingLatitude) { - coord.setLatitude(coord.latitude() + diff/1e5); + coord.setLatitude(coord.latitude() + (double)diff/1e6); } else { - coord.setLongitude(coord.longitude() + diff/1e5); + coord.setLongitude(coord.longitude() + (double)diff/1e6); path.append(coord); } |