Adapt to feedback in #519

This commit is contained in:
Patrick Niklaus
2016-02-22 22:09:50 +01:00
parent 8378d95588
commit fcd7b05900
6 changed files with 28 additions and 23 deletions
+3 -3
View File
@@ -35,12 +35,12 @@ inline StepManeuver stepManeuverFromGeometry(const extractor::TurnInstruction in
const auto turn_coordinate = leg_geometry.locations[turn_index];
const auto post_turn_coordinate = leg_geometry.locations[turn_index + 1];
const double pre_turn_heading =
const double pre_turn_bearing =
util::coordinate_calculation::bearing(pre_turn_coordinate, turn_coordinate);
const double post_turn_heading =
const double post_turn_bearing =
util::coordinate_calculation::bearing(turn_coordinate, post_turn_coordinate);
return StepManeuver{turn_coordinate, pre_turn_heading, post_turn_heading, instruction};
return StepManeuver{turn_coordinate, pre_turn_bearing, post_turn_bearing, instruction};
}
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace guidance
struct RouteStep
{
unsigned name_id;
std::string way_name;
std::string name;
double duration;
double distance;
extractor::TravelMode mode;
+2 -2
View File
@@ -14,8 +14,8 @@ namespace guidance
struct StepManeuver
{
util::FixedPointCoordinate location;
double heading_before;
double heading_after;
double bearing_before;
double bearing_after;
extractor::TurnInstruction instruction;
};