polyline needs to be data, not array

This commit is contained in:
Dennis Luxen
2011-06-28 08:27:38 +00:00
parent e3b648ea72
commit 5b621d8fe9
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -286,7 +286,7 @@ public:
reply.content += "\"route_summary\": {";
reply.content += routeSummaryString;
reply.content += "},";
reply.content += "\"route_geometry\": [";
reply.content += "\"route_geometry\": ";
if(config.geometry) {
if(config.encodeGeometry)
config.pc.printEncodedString(polyline, routeGeometryString);
@@ -295,7 +295,7 @@ public:
reply.content += routeGeometryString;
}
reply.content += "],";
reply.content += ",";
reply.content += "\"route_instructions\": [";
if(config.instructions) {
reply.content += routeInstructionString;