fix unpacking of geometry for shared memory
This commit is contained in:
parent
d0e158ca07
commit
ede5cca2e7
@ -112,12 +112,6 @@ public:
|
|||||||
pathDescription[i].length = FixedPointCoordinate::ApproximateEuclideanDistance(pathDescription[i-1].location, pathDescription[i].location);
|
pathDescription[i].length = FixedPointCoordinate::ApproximateEuclideanDistance(pathDescription[i-1].location, pathDescription[i].location);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned i = 0; i < pathDescription.size(); ++i)
|
|
||||||
{
|
|
||||||
const std::string name = facade->GetEscapedNameForNameID(pathDescription[0].name_id);
|
|
||||||
// SimpleLogger().Write(logDEBUG) << "df [" << i << "] name: " << name << ", duration: " << pathDescription[i].duration << ", length: " << pathDescription[i].length << ", coordinate: " << pathDescription[i].location;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*Simplify turn instructions
|
/*Simplify turn instructions
|
||||||
Input :
|
Input :
|
||||||
10. Turn left on B 36 for 20 km
|
10. Turn left on B 36 for 20 km
|
||||||
|
@ -132,7 +132,6 @@ public:
|
|||||||
//check if first segment is non-zero
|
//check if first segment is non-zero
|
||||||
std::string road_name;
|
std::string road_name;
|
||||||
int source_duration = phantom_nodes.source_phantom.GetForwardWeightPlusOffset();
|
int source_duration = phantom_nodes.source_phantom.GetForwardWeightPlusOffset();
|
||||||
// SimpleLogger().Write(logDEBUG) << "-> source_traversed_in_reverse: " << (raw_route.source_traversed_in_reverse ? "y" : "n");
|
|
||||||
if (!raw_route.source_traversed_in_reverse)
|
if (!raw_route.source_traversed_in_reverse)
|
||||||
{
|
{
|
||||||
source_duration = phantom_nodes.source_phantom.GetReverseWeightPlusOffset();
|
source_duration = phantom_nodes.source_phantom.GetReverseWeightPlusOffset();
|
||||||
@ -164,18 +163,6 @@ public:
|
|||||||
}
|
}
|
||||||
BOOST_ASSERT(target_duration >= 0);
|
BOOST_ASSERT(target_duration >= 0);
|
||||||
|
|
||||||
// if (target_duration > 0)
|
|
||||||
// {
|
|
||||||
// SimpleLogger().Write(logDEBUG) << "adding target \"" << road_name << "\" at " << phantom_nodes.target_phantom.location << ", duration: " << target_duration;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// SimpleLogger().Write(logDEBUG) << "ignoring target \"" << road_name << "\"";
|
|
||||||
// }
|
|
||||||
// SimpleLogger().Write(logDEBUG) << "-> target_traversed_in_reverse: " << (raw_route.target_traversed_in_reverse ? "y" : "n");
|
|
||||||
|
|
||||||
//END OF TODO
|
|
||||||
|
|
||||||
description_factory.SetStartSegment(phantom_nodes.source_phantom, raw_route.source_traversed_in_reverse);
|
description_factory.SetStartSegment(phantom_nodes.source_phantom, raw_route.source_traversed_in_reverse);
|
||||||
reply.content.push_back("0,"
|
reply.content.push_back("0,"
|
||||||
"\"status_message\": \"Found route between points\",");
|
"\"status_message\": \"Found route between points\",");
|
||||||
@ -244,7 +231,6 @@ public:
|
|||||||
|
|
||||||
//only one alternative route is computed at this time, so this is hardcoded
|
//only one alternative route is computed at this time, so this is hardcoded
|
||||||
|
|
||||||
|
|
||||||
if(raw_route.lengthOfAlternativePath != INVALID_EDGE_WEIGHT)
|
if(raw_route.lengthOfAlternativePath != INVALID_EDGE_WEIGHT)
|
||||||
{
|
{
|
||||||
alternate_descriptionFactory.SetStartSegment(phantom_nodes.source_phantom, raw_route.alt_source_traversed_in_reverse);
|
alternate_descriptionFactory.SetStartSegment(phantom_nodes.source_phantom, raw_route.alt_source_traversed_in_reverse);
|
||||||
|
Loading…
Reference in New Issue
Block a user