Since the CLI return one geometry for each og segment instead of each geometryId, there are some additional segments that got merged into one. For the example below, the og segment highlighted in red on the right got matched as the red segment (merged by 4 geometryId) on the left.

Nested segments attribute value returned from CLI for that one link_dir:
[ { "geometryId": "bedfde35733e5f32597f2a32fb49851f", "referenceId": "759cb5a41fd4921daf25218487088952", "referenceLength": 33.070000, "section": [ 28.682419, 33.070000 ], "fromIntersectionId": "cf7b69635f3cf68c8ae96740f9dfa2d3", "toIntersectionId": "da57e6a6540395c2ef30eaeacc3e77be" }, { "geometryId": "4e81841e7d45dac09647a5d70eb1a21c", "referenceId": "b639cd6c911120f8c388a5b8c76c2c28", "referenceLength": 23.810000, "section": [ 0, 23.810000 ], "fromIntersectionId": "da57e6a6540395c2ef30eaeacc3e77be", "toIntersectionId": "27116f223f432269197d37d42735c23e" }, { "geometryId": "e452b56a4f7ff8971f007a61a2f65396", "referenceId": "951331e0d1028e8d0a6532a36bb647e5", "referenceLength": 58.120000, "section": [ 0, 58.120000 ], "fromIntersectionId": "27116f223f432269197d37d42735c23e", "toIntersectionId": "3f16ccfd37dbebbfff5aa4016a12954f" }, { "geometryId": "0f562a313592dfe7993e00cd22d502b7", "referenceId": "39ad9e1038613b8f9aaea0c1a964ff76", "referenceLength": 221.090000, "section": [ 0, 221.090000 ], "fromIntersectionId": "3f16ccfd37dbebbfff5aa4016a12954f", "toIntersectionId": "27c46eb064d2efb1eba9e823c680361c" } ]
Since the CLI return one geometry for each og segment instead of each geometryId, there are some additional segments that got merged into one. For the example below, the og segment highlighted in red on the right got matched as the red segment (merged by 4 geometryId) on the left.
Nested
segmentsattribute value returned from CLI for that one link_dir:[ { "geometryId": "bedfde35733e5f32597f2a32fb49851f", "referenceId": "759cb5a41fd4921daf25218487088952", "referenceLength": 33.070000, "section": [ 28.682419, 33.070000 ], "fromIntersectionId": "cf7b69635f3cf68c8ae96740f9dfa2d3", "toIntersectionId": "da57e6a6540395c2ef30eaeacc3e77be" }, { "geometryId": "4e81841e7d45dac09647a5d70eb1a21c", "referenceId": "b639cd6c911120f8c388a5b8c76c2c28", "referenceLength": 23.810000, "section": [ 0, 23.810000 ], "fromIntersectionId": "da57e6a6540395c2ef30eaeacc3e77be", "toIntersectionId": "27116f223f432269197d37d42735c23e" }, { "geometryId": "e452b56a4f7ff8971f007a61a2f65396", "referenceId": "951331e0d1028e8d0a6532a36bb647e5", "referenceLength": 58.120000, "section": [ 0, 58.120000 ], "fromIntersectionId": "27116f223f432269197d37d42735c23e", "toIntersectionId": "3f16ccfd37dbebbfff5aa4016a12954f" }, { "geometryId": "0f562a313592dfe7993e00cd22d502b7", "referenceId": "39ad9e1038613b8f9aaea0c1a964ff76", "referenceLength": 221.090000, "section": [ 0, 221.090000 ], "fromIntersectionId": "3f16ccfd37dbebbfff5aa4016a12954f", "toIntersectionId": "27c46eb064d2efb1eba9e823c680361c" } ]