Split intersection analysis and guidance code
Intersection analysis occupy in osrm::extractor::intersection namespace and guidance code osrm::guidance
This commit is contained in:
@@ -15,7 +15,7 @@ BOOST_AUTO_TEST_SUITE(guidance_assembly)
|
||||
BOOST_AUTO_TEST_CASE(trim_short_segments)
|
||||
{
|
||||
using namespace osrm::extractor;
|
||||
using namespace osrm::extractor::guidance;
|
||||
using namespace osrm::guidance;
|
||||
using namespace osrm::engine::guidance;
|
||||
using namespace osrm::engine;
|
||||
using namespace osrm::util;
|
||||
@@ -59,7 +59,8 @@ BOOST_AUTO_TEST_CASE(trim_short_segments)
|
||||
0},
|
||||
0,
|
||||
3,
|
||||
{intersection1}},
|
||||
{intersection1},
|
||||
false},
|
||||
{324,
|
||||
false,
|
||||
"Central Park West",
|
||||
@@ -81,7 +82,8 @@ BOOST_AUTO_TEST_CASE(trim_short_segments)
|
||||
0},
|
||||
2,
|
||||
3,
|
||||
{intersection2}}};
|
||||
{intersection2},
|
||||
false}};
|
||||
|
||||
LegGeometry geometry;
|
||||
geometry.locations = {{FloatLongitude{-73.981492}, FloatLatitude{40.768258}},
|
||||
|
||||
@@ -9,7 +9,7 @@ BOOST_AUTO_TEST_SUITE(json_factory)
|
||||
BOOST_AUTO_TEST_CASE(instructionTypeToString_test_size)
|
||||
{
|
||||
using namespace osrm::engine::api::json::detail;
|
||||
using namespace osrm::extractor::guidance;
|
||||
using namespace osrm::guidance;
|
||||
|
||||
BOOST_CHECK_EQUAL(instructionTypeToString(TurnType::Sliproad), "invalid");
|
||||
}
|
||||
|
||||
@@ -208,10 +208,9 @@ class ContiguousInternalMemoryDataFacade<routing_algorithms::offline::Algorithm>
|
||||
|
||||
StringView GetDatasourceName(const DatasourceID /*id*/) const override { return StringView{}; }
|
||||
|
||||
extractor::guidance::TurnInstruction
|
||||
GetTurnInstructionForEdgeID(const EdgeID /*id*/) const override
|
||||
guidance::TurnInstruction GetTurnInstructionForEdgeID(const EdgeID /*id*/) const override
|
||||
{
|
||||
return extractor::guidance::TurnInstruction{};
|
||||
return guidance::TurnInstruction{};
|
||||
}
|
||||
|
||||
extractor::TravelMode GetTravelMode(const NodeID /*id*/) const override
|
||||
@@ -320,7 +319,7 @@ class ContiguousInternalMemoryDataFacade<routing_algorithms::offline::Algorithm>
|
||||
return util::guidance::LaneTupleIdPair{};
|
||||
}
|
||||
|
||||
extractor::guidance::TurnLaneDescription
|
||||
extractor::TurnLaneDescription
|
||||
GetTurnDescription(const LaneDescriptionID /*laneDescriptionID*/) const override
|
||||
{
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user