MCPcopy Create free account
hub / github.com/comaps/comaps / CouldAddIntermediatePoint

Method CouldAddIntermediatePoint

libs/map/routing_manager.cpp:937–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937bool RoutingManager::CouldAddIntermediatePoint() const
938{
939 if (!IsRoutingActive())
940 return false;
941
942 return m_bmManager->GetUserMarkIds(UserMark::Type::ROUTING).size() <
943 RoutePointsLayout::kMaxIntermediatePointsCount + 2;
944}
945
946void RoutingManager::AddRoutePoint(RouteMarkData && markData, bool reorderIntermediatePoints)
947{

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected