First compiling version of map_match plugin

This commit is contained in:
Patrick Niklaus
2016-02-21 04:27:26 +01:00
parent e05a45b080
commit 35b098e656
19 changed files with 587 additions and 457 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ namespace api
struct MatchParameters : public RouteParameters
{
std::vector<boost::optional<unsigned>> timestamps;
std::vector<unsigned> timestamps;
bool IsValid() const
{
return timestamps.empty() || timestamps.size() == coordinates.size();
return RouteParameters::IsValid() && (timestamps.empty() || timestamps.size() == coordinates.size());
}
};