Reworking data access to go always through facades

This commit is contained in:
Dennis Luxen
2013-09-20 11:09:07 +02:00
parent 64c75c8b57
commit fb1361b00d
6 changed files with 73 additions and 68 deletions
+5 -5
View File
@@ -122,12 +122,12 @@ public:
( routeParameters.alternateRoute ) &&
(1 == rawRoute.segmentEndCoordinates.size())
) {
search_engine_ptr->alternativePaths(
search_engine_ptr->alternative_paths(
rawRoute.segmentEndCoordinates[0],
rawRoute
);
} else {
search_engine_ptr->shortestPath(
search_engine_ptr->shortest_path(
rawRoute.segmentEndCoordinates,
rawRoute
);
@@ -146,16 +146,16 @@ public:
reply.content += "(";
}
_DescriptorConfig descriptorConfig;
DescriptorConfig descriptorConfig;
unsigned descriptorType = 0;
if(descriptorTable.find(routeParameters.outputFormat) != descriptorTable.end() ) {
descriptorType = descriptorTable.find(routeParameters.outputFormat)->second;
}
descriptorConfig.z = routeParameters.zoomLevel;
descriptorConfig.zoom_level = routeParameters.zoomLevel;
descriptorConfig.instructions = routeParameters.printInstructions;
descriptorConfig.geometry = routeParameters.geometry;
descriptorConfig.encodeGeometry = routeParameters.compression;
descriptorConfig.encode_geometry = routeParameters.compression;
switch(descriptorType){
case 0: