* optionally include condition and via node coords in InputRestrictionContainer * only write conditionals to disk, custom serialization for restrictions * conditional turn lookup, reuse timezone validation from extract-conditionals * adapt updater to use coordinates/osm ids, remove internal to external map * add utc time now parameter to contraction * only compile timezone code where libshp is found, adapt test running * slight refactor, more tests * catch invalid via nodes in restriction parsing, set default cucumber origin to guinée * add another run to test mld routed paths * cosmetic review changes * Simplify Timezoner for windows build * Split declaration and parsing parts for opening hours * adjust conditional tests to run without shapefiles * always include parse conditionals option * Adjust travis timeout * Added dummy TZ shapefile with test timezone polygons * [skip ci] update changelog
34 lines
707 B
C++
34 lines
707 B
C++
#ifndef OSRM_UPDATER_UPDATER_HPP
|
|
#define OSRM_UPDATER_UPDATER_HPP
|
|
|
|
#include "updater/updater_config.hpp"
|
|
|
|
#include "extractor/edge_based_edge.hpp"
|
|
|
|
#include <chrono>
|
|
#include <vector>
|
|
|
|
namespace osrm
|
|
{
|
|
namespace updater
|
|
{
|
|
class Updater
|
|
{
|
|
public:
|
|
Updater(UpdaterConfig config_) : config(std::move(config_)) {}
|
|
|
|
using NumNodesAndEdges = std::tuple<EdgeID, std::vector<extractor::EdgeBasedEdge>>;
|
|
NumNodesAndEdges LoadAndUpdateEdgeExpandedGraph() const;
|
|
|
|
EdgeID
|
|
LoadAndUpdateEdgeExpandedGraph(std::vector<extractor::EdgeBasedEdge> &edge_based_edge_list,
|
|
std::vector<EdgeWeight> &node_weights) const;
|
|
|
|
private:
|
|
UpdaterConfig config;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|