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

Method GetReverseDistance

include/engine/phantom_node.hpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 EdgeDistance GetReverseDistance() const
99 {
100 // .......... <-- reverse_distance
101 // ... <-- offset
102 // ............. <-- desired distance
103 // x <-- this is PhantomNode.location
104 // 0----1----2----3----4 <-- EdgeBasedGraph Node segments
105 BOOST_ASSERT(reverse_segment_id.enabled);
106 return reverse_distance + reverse_distance_offset;
107 }
108
109 bool IsBidirected() const { return forward_segment_id.enabled && reverse_segment_id.enabled; }
110

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