osrm-backend/include/engine/api/match_parameters.hpp

29 lines
435 B
C++
Raw Normal View History

2016-01-28 10:28:44 -05:00
#ifndef ENGINE_API_MATCH_PARAMETERS_HPP
#define ENGINE_API_MATCH_PARAMETERS_HPP
#include "engine/api/route_parameters.hpp"
#include <vector>
namespace osrm
{
namespace engine
{
namespace api
{
struct MatchParameters : public RouteParameters
{
2016-02-17 20:21:47 -05:00
std::vector<boost::optional<unsigned>> timestamps;
bool IsValid() const
{
return timestamps.empty() || timestamps.size() == coordinates.size();
}
2016-01-28 10:28:44 -05:00
};
}
}
}
#endif