Adjusted number of nodes in annotation, resolves #3515

This commit is contained in:
Michael Krasnyk
2017-01-16 16:07:13 +01:00
committed by Patrick Niklaus
parent 70e899378d
commit d0f1347ff1
3 changed files with 84 additions and 2 deletions
+1
View File
@@ -1359,6 +1359,7 @@ void trimShortSegments(std::vector<RouteStep> &steps, LegGeometry &geometry)
// This can happen if the last coordinate snaps to a node in the unpacked geometry
geometry.locations.pop_back();
geometry.annotations.pop_back();
geometry.osm_node_ids.pop_back();
geometry.segment_offsets.back()--;
// since the last geometry includes the location of arrival, the arrival instruction
// geometry overlaps with the previous segment