* 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! */
| 56 | * warning: caller needs to take care of synchronization! |
| 57 | */ |
| 58 | void 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 | |
| 67 | void ExtractorCallbacks::ProcessRestriction(const InputTurnRestriction &restriction) |
| 68 | { |
no test coverage detected