"Segments are not in the same direction" for 2 two-way segments

Is this a…:
Standard bug
Steps to reproduce this issue:

  1. Select segments 445375943 and 354516812, which are both two-way segments
  2. A warning message is shown: “Segments are not in the same direction” and the segments cannot be bridged or the node deleted

It looks like the real issue is that the speed limits are different between the two segments (making them the same allows the node to be removed). But the warning message says the issue is the direction.

Environment where the bug occurs…:
ROW
Permalink:
https://waze.com/editor?env=row&lat=12.07838&lon=-86.24061&zoomLevel=21&segments=445375943,354516812
Browser name and version:
Chrome 141.0.7390.77

1 Like

But both segments are truly in different directions, the fromNodeID share the same NodeID number which is ID: 151908716. If these segments are in the same direction, the toNodeID of one segment will be the fromNodeID of the other segment. https://www.waze.com/editor/sdk/interfaces/index.SDK.Segment.html

here is the data model of both segments

{
    "allowNoDirection": false,
    "alternateStreetIds": [],
    "areFwdTurnsVerified": true,
    "areRevTurnsVerified": true,
    "elevationLevel": 0,
    "flagAttributes": {
        "beacons": false,
        "fwdLanesEnabled": false,
        "fwdSpeedCamera": false,
        "headlights": false,
        "nearbyHOV": false,
        "revLanesEnabled": false,
        "revSpeedCamera": false,
        "tunnel": false,
        "unpaved": false
    },
    "fromLanesInfo": null,
    "fromNodeId": 151908716,
    "fromNodeLanesCount": 0,
    "fwdSpeedLimit": 45,
    "geometry": {
        "type": "LineString",
        "coordinates": [
            [
                -86.24062770788129,
                12.078402926084909
            ],
            [
                -86.24060275750062,
                12.078396436179213
            ]
        ]
    },
    "hasClosures": false,
    "hasHouseNumbers": false,
    "hasRestrictions": false,
    "hasSeparator": false,
    "id": 445375943,
    "isAtoB": false,
    "isBtoA": false,
    "isFwdSpeedLimitVerified": true,
    "isRevSpeedLimitVerified": true,
    "isTwoWay": true,
    "junctionId": null,
    "length": 3,
    "lockRank": 2,
    "modificationData": {
        "createdBy": "Inactive User",
        "createdOn": 1313954717210,
        "updatedBy": "nic942",
        "updatedOn": 1764421604947
    },
    "primaryStreetId": 15411748,
    "rank": 0,
    "restrictions": [],
    "revSpeedLimit": 45,
    "roadType": 1,
    "routingRoadType": null,
    "toLanesInfo": null,
    "toNodeId": 339641477,
    "toNodeLanesCount": 0
},

{
    "allowNoDirection": false,
    "alternateStreetIds": [],
    "areFwdTurnsVerified": true,
    "areRevTurnsVerified": true,
    "elevationLevel": 0,
    "flagAttributes": {
        "beacons": false,
        "fwdLanesEnabled": false,
        "fwdSpeedCamera": false,
        "headlights": false,
        "nearbyHOV": false,
        "revLanesEnabled": false,
        "revSpeedCamera": false,
        "tunnel": false,
        "unpaved": false
    },
    "fromLanesInfo": null,
    "fromNodeId": 151908716,
    "fromNodeLanesCount": 0,
    "fwdSpeedLimit": 30,
    "geometry": {
        "type": "LineString",
        "coordinates": [
            [
                -86.24062770788129,
                12.078402926084909
            ],
            [
                -86.24099801176148,
                12.078519423806158
            ],
            [
                -86.24118781780837,
                12.078645592896216
            ],
            [
                -86.24159933809696,
                12.079123547865294
            ]
        ]
    },
    "hasClosures": false,
    "hasHouseNumbers": false,
    "hasRestrictions": false,
    "hasSeparator": false,
    "id": 354516812,
    "isAtoB": false,
    "isBtoA": false,
    "isFwdSpeedLimitVerified": true,
    "isRevSpeedLimitVerified": true,
    "isTwoWay": true,
    "junctionId": null,
    "length": 137,
    "lockRank": 2,
    "modificationData": {
        "createdBy": "Inactive User",
        "createdOn": 1313954717210,
        "updatedBy": "SmoothB0",
        "updatedOn": 1737948581608
    },
    "primaryStreetId": 15411748,
    "rank": 0,
    "restrictions": [],
    "revSpeedLimit": 30,
    "roadType": 1,
    "routingRoadType": null,
    "toLanesInfo": null,
    "toNodeId": 151908713,
    "toNodeLanesCount": 0
},
2 Likes

Interesting, thanks for looking into that! So I guess that error isn’t talking about one-way direction (isAtoB and isBtoA) but about wanting the combined segments to be consistently A → B, A → B. I wonder why updating the speed limit to match surrounding segments allows the node to be deleted, if that’s the case.

Also, I tried creating two new segments with A → B ← A orientation, and it did let me combine them, FWIW.

Hi @nic942,

Thanks for reporting this problem! I’ve logged an internal ticket for this case and will keep you informed of any updates.

@AndyLaode, thank you for your input!

Regards,
Vladyslav

1 Like