Initial non-building match plugin

This commit is contained in:
Patrick Niklaus
2016-02-18 02:21:47 +01:00
parent c38a6d74dd
commit b0863d8628
3 changed files with 398 additions and 343 deletions
+5 -2
View File
@@ -14,8 +14,11 @@ namespace api
struct MatchParameters : public RouteParameters
{
std::vector<unsigned> timestamps;
bool IsValid() const;
std::vector<boost::optional<unsigned>> timestamps;
bool IsValid() const
{
return timestamps.empty() || timestamps.size() == coordinates.size();
}
};
}