diff --git a/CHANGELOG.md b/CHANGELOG.md index aa6ef8c73..7078ae5c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ - Routing: - FIXED: Fix adding traffic signal penalties during compression [#6419](https://github.com/Project-OSRM/osrm-backend/pull/6419) - FIXED: Correctly handle compressed traffic signals. [#6724](https://github.com/Project-OSRM/osrm-backend/pull/6724) + - Debug tiles: + - FIXED: Ensure speed layer features have unique ids. [#6726](https://github.com/Project-OSRM/osrm-backend/pull/6726) # 5.27.1 - Changes from 5.27.0 - Misc: diff --git a/src/engine/plugins/tile.cpp b/src/engine/plugins/tile.cpp index 3ed573798..2a37824aa 100644 --- a/src/engine/plugins/tile.cpp +++ b/src/engine/plugins/tile.cpp @@ -508,7 +508,7 @@ void encodeVectorTile(const DataFacadeBase &facade, auto tile_line = coordinatesToTileLine(a, b, tile_bbox); if (!tile_line.empty()) { - SpeedLayerFeatureBuilder fbuilder{speeds_layer, id}; + SpeedLayerFeatureBuilder fbuilder{speeds_layer, id++}; fbuilder.add_linestring_from_container(tile_line); fbuilder.set_speed(speed_kmh_idx); @@ -542,7 +542,7 @@ void encodeVectorTile(const DataFacadeBase &facade, auto tile_line = coordinatesToTileLine(b, a, tile_bbox); if (!tile_line.empty()) { - SpeedLayerFeatureBuilder fbuilder{speeds_layer, id}; + SpeedLayerFeatureBuilder fbuilder{speeds_layer, id++}; fbuilder.add_linestring_from_container(tile_line); fbuilder.set_speed(speed_kmh_idx); diff --git a/test/nodejs/constants.js b/test/nodejs/constants.js index 72b93da30..e56742e0c 100644 --- a/test/nodejs/constants.js +++ b/test/nodejs/constants.js @@ -10,7 +10,7 @@ exports.three_test_coordinates = [[7.41337, 43.72956], exports.two_test_coordinates = exports.three_test_coordinates.slice(0, 2) -exports.test_tile = {'at': [17059, 11948, 15], 'size': 156539}; +exports.test_tile = {'at': [17059, 11948, 15], 'size': 159125}; // Test files generated by the routing engine; check test/data if (process.env.OSRM_DATA_PATH !== undefined) {