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

Method ProcessNode

src/extractor/extractor_callbacks.cpp:58–65  ·  view source on GitHub ↗

* Takes the node position from osmium and the filtered properties from the lua * profile and saves them to external memory. * * warning: caller needs to take care of synchronization! */

Source from the content-addressed store, hash-verified

56 * warning: caller needs to take care of synchronization!
57 */
58void ExtractorCallbacks::ProcessNode(const osmium::Node &input_node, const ExtractionNode &)
59{
60 const auto id = to_alias<OSMNodeID>(input_node.id());
61 external_memory.all_nodes_list.push_back(
62 QueryNode{util::toFixed(util::UnsafeFloatLongitude{input_node.location().lon()}),
63 util::toFixed(util::UnsafeFloatLatitude{input_node.location().lat()}),
64 id});
65}
66
67void ExtractorCallbacks::ProcessRestriction(const InputTurnRestriction &restriction)
68{

Callers 1

ParseOSMDataMethod · 0.45

Calls 3

toFixedFunction · 0.85
push_backMethod · 0.45
locationMethod · 0.45

Tested by

no test coverage detected