diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-12-22 13:34:20 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-01-09 10:37:24 +0000 |
commit | 00483471fc14dc8a99fb64489358bdddb64bd676 (patch) | |
tree | 6c96fb2e4ca5a0366f7eb0584af5d5266af8fca1 | |
parent | 3a16c7a92c5ba7116d4f6566c62fe2ef3ad073d1 (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp index 75daefda..6c1f7c83 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; } |