File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,7 @@ void QGeoRouteReplyGooglemaps::networkReplyFinished()
155
155
156
156
QJsonObject o = jsonroutes.at (i).toObject ();
157
157
158
- QByteArray routeGeometry = o.value (QStringLiteral (" overview_polyline" )).
159
- toObject ().value (QStringLiteral (" points" )).toString ().toLatin1 ();
160
- QList<QGeoCoordinate> path = parsePolyline (routeGeometry);
161
-
158
+ QList<QGeoCoordinate> path;
162
159
163
160
QJsonObject bo = o.value (QStringLiteral (" bounds" )).toObject ();
164
161
QJsonObject ne_loc_o = bo.value (QStringLiteral (" northeast" )).toObject ();
@@ -191,6 +188,8 @@ void QGeoRouteReplyGooglemaps::networkReplyFinished()
191
188
QList<QGeoCoordinate> steppath = parsePolyline (stepGeometry);
192
189
QString directionCode = stepo.value (" maneuver" ).toString ();
193
190
191
+ path += steppath;
192
+
194
193
maneuver.setDirection (gmapsInstructionDirection (directionCode));
195
194
maneuver.setDistanceToNextInstruction (distance);
196
195
maneuver.setInstructionText (instructionText);
You can’t perform that action at this time.
0 commit comments