Filter out edges that have any speed=0 segments.

They become non-snappable and non-routable.  Note that a single segment
of speed=0 will eliminate the entire edge.
This commit is contained in:
Daniel Patterson
2016-07-28 14:09:55 -07:00
committed by Patrick Niklaus
parent eda6d9dc7c
commit d012b44b7f
5 changed files with 149 additions and 28 deletions
+3 -1
View File
@@ -62,8 +62,10 @@ class MockDataFacade final : public engine::datafacade::BaseDataFacade
{
}
void GetUncompressedWeights(const EdgeID /* id */,
std::vector<EdgeWeight> & /* result_weights */) const override
std::vector<EdgeWeight> &result_weights) const override
{
result_weights.resize(1);
result_weights[0] = 1;
}
void GetUncompressedDatasources(const EdgeID /*id*/,
std::vector<uint8_t> & /*data_sources*/) const override