API Breaking change. Location of nodes can be specified by a hint.

This commit is contained in:
DennisOSRM
2012-03-05 19:08:10 +01:00
parent 91c9cb2114
commit e83891b4fc
7 changed files with 132 additions and 109 deletions
+2 -2
View File
@@ -167,11 +167,11 @@ public:
}
}
reply.content += "],";
reply.content += "\"route_data\": {";
reply.content += "\"hint_data\": {";
reply.content += "\"checksum\":";
intToString(rawRoute.checkSum, tmp);
reply.content += tmp;
reply.content += ", \"hint_array\": [";
reply.content += ", \"locations\": [";
for(unsigned i = 0; i < rawRoute.segmentEndCoordinates.size(); ++i) {
std::string hint;