| 58 | } |
| 59 | |
| 60 | RestrictionID insertViaNode(RestrictionGraph &rg, NodeID from, NodeID to) |
| 61 | { |
| 62 | auto new_via_node_idx = rg.nodes.size(); |
| 63 | rg.nodes.push_back(RestrictionNode{rg.restrictions.size(), 0, rg.edges.size(), 0}); |
| 64 | rg.via_edge_to_node.insert({{from, to}, new_via_node_idx}); |
| 65 | return new_via_node_idx; |
| 66 | } |
| 67 | |
| 68 | // pathBuilder builds the prefix tree structure that is used to first insert turn restrictions |
| 69 | // into the graph. |