migrated out of edge based graph factory
This commit is contained in:
committed by
Patrick Niklaus
parent
6605f293b4
commit
daf2bbf991
@@ -100,7 +100,7 @@ util::json::Object makeStepManeuver(const guidance::StepManeuver &maneuver)
|
||||
{
|
||||
util::json::Object step_maneuver;
|
||||
step_maneuver.values["type"] = detail::instructionTypeToString(maneuver.instruction.type);
|
||||
if( isValidModifier( maneuver.instruction.type, maneuver.instruction.direction_modifier )
|
||||
if( isValidModifier( maneuver.instruction.type, maneuver.instruction.direction_modifier ) )
|
||||
step_maneuver.values["modifier"] =
|
||||
detail::instructionModifierToString(maneuver.instruction.direction_modifier);
|
||||
step_maneuver.values["location"] = detail::coordinateToLonLat(maneuver.location);
|
||||
|
||||
@@ -98,7 +98,9 @@ std::vector<std::vector<PathData>> postProcess(std::vector<std::vector<PathData>
|
||||
bool on_roundabout = false;
|
||||
for (auto &path_data : leg_data)
|
||||
{
|
||||
path_data[0].exit = carry_exit;
|
||||
if( not path_data.empty() )
|
||||
path_data[0].exit = carry_exit;
|
||||
|
||||
for (std::size_t data_index = 0; data_index + 1 < path_data.size(); ++data_index)
|
||||
{
|
||||
if (entersRoundabout(path_data[data_index].turn_instruction) )
|
||||
|
||||
Reference in New Issue
Block a user