Support rectangular matrix with less sources than targets

This commit is contained in:
Fabien Girard
2015-11-05 18:28:00 +01:00
committed by Patrick Niklaus
parent 4253ebf243
commit 478d4a571a
8 changed files with 128 additions and 29 deletions
+6
View File
@@ -82,8 +82,12 @@ struct RouteParameters
void addCoordinate(const boost::fusion::vector<double, double> &received_coordinates);
void addSource(const boost::fusion::vector<double, double> &received_coordinates);
void getCoordinatesFromGeometry(const std::string &geometry_string);
void setMappedPointsFlag(const bool flag);
short zoom_level;
bool print_instructions;
bool alternate_route;
@@ -92,6 +96,7 @@ struct RouteParameters
bool deprecatedAPI;
bool uturn_default;
bool classify;
bool mapped_points;
double matching_beta;
double gps_precision;
unsigned check_sum;
@@ -105,6 +110,7 @@ struct RouteParameters
std::vector<std::pair<const int,const boost::optional<int>>> bearings;
std::vector<bool> uturns;
std::vector<FixedPointCoordinate> coordinates;
std::vector<FixedPointCoordinate> sources;
};
#endif // ROUTE_PARAMETERS_HPP