MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / FirstVia

Method FirstVia

include/extractor/turn_path.hpp:195–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 }
194
195 NodeID FirstVia() const
196 {
197 if (node_or_way.index() == TurnPathType::VIA_NODE_TURN_PATH)
198 {
199 return std::get<ViaNodePath>(node_or_way).via;
200 }
201 else
202 {
203 BOOST_ASSERT(!std::get<ViaWayPath>(node_or_way).via.empty());
204 return std::get<ViaWayPath>(node_or_way).via[0];
205 }
206 }
207
208 ViaWayPath &AsViaWayPath()
209 {

Callers 1

buildGraphFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected