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

Method GetForwardDistance

include/engine/phantom_node.hpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 // DO THIS FOR DISTANCE
86
87 EdgeDistance GetForwardDistance() const
88 {
89 // ..... <-- forward_distance
90 // .... <-- offset
91 // ......... <-- desired distance
92 // x <-- this is PhantomNode.location
93 // 0----1----2----3----4 <-- EdgeBasedGraph Node segments
94 BOOST_ASSERT(forward_segment_id.enabled);
95 return forward_distance + forward_distance_offset;
96 }
97
98 EdgeDistance GetReverseDistance() const
99 {

Callers 5

getNetworkDistanceFunction · 0.80
oneToManySearchFunction · 0.80
insertSourceInHeapFunction · 0.80
insertTargetInHeapFunction · 0.80
getNetworkDistanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected