summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-12-22 12:34:20 (GMT)
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-01-09 10:37:24 (GMT)
commit00483471fc14dc8a99fb64489358bdddb64bd676 (patch)
tree6c96fb2e4ca5a0366f7eb0584af5d5266af8fca1
parent3a16c7a92c5ba7116d4f6566c62fe2ef3ad073d1 (diff)
downloadqtlocation-00483471fc14dc8a99fb64489358bdddb64bd676.tar.gz
Increase lat/lon precision in OSRMv5::requestUrl
Change-Id: I1ca0565640c639419796cf32d8cefea99bd21a88 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeorouteparserosrmv5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp
index 75daefd..6c1f7c8 100644
--- a/src/location/maps/qgeorouteparserosrmv5.cpp
+++ b/src/location/maps/qgeorouteparserosrmv5.cpp
@@ -953,7 +953,7 @@ QUrl QGeoRouteParserOsrmV5Private::requestUrl(const QGeoRouteRequest &request, c
foreach (const QGeoCoordinate &c, request.waypoints()) {
if (notFirst)
routingUrl.append(QLatin1Char(';'));
- routingUrl.append(QString::number(c.longitude())).append(QLatin1Char(',')).append(QString::number(c.latitude()));
+ routingUrl.append(QString::number(c.longitude(), 'f', 7)).append(QLatin1Char(',')).append(QString::number(c.latitude(), 'f', 7));
++notFirst;
}