Skip to content

Commit

Permalink
Fixed CostMatrix incorrect tile usage with oppedge (#3719)
Browse files Browse the repository at this point in the history
* Fix wrong tile usage with opp_edge in costmatrix.cc

* Update changelog
  • Loading branch information
DmitryAk authored Aug 21, 2022
1 parent 2f40cee commit 165ea84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* FIXED: Some interpolated points had invalid edge_index in trace_attributes response [#3646](https://github.com/valhalla/valhalla/pull/3670)
* FIXED: Use a small node snap distance in map-matching. FIxes issue with incorrect turn followed by Uturn. [#3677](https://github.com/valhalla/valhalla/pull/3677)
* FIXED: Conan error when building Docker image. [#3689](https://github.com/valhalla/valhalla/pull/3689)
* FIXED: CostMatrix incorrect tile usage with oppedge. [#3719](https://github.com/valhalla/valhalla/pull/3719)

* **Enhancement**
* CHANGED: Pronunciation for names and destinations [#3132](https://github.com/valhalla/valhalla/pull/3132)
Expand Down
2 changes: 1 addition & 1 deletion src/thor/costmatrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ void CostMatrix::BackwardSearch(const uint32_t index, GraphReader& graphreader)
// we can properly recover elapsed time on the reverse path.
uint8_t flow_sources;
Cost newcost =
pred.cost() + costing_->EdgeCost(opp_edge, tile, TimeInfo::invalid(), flow_sources);
pred.cost() + costing_->EdgeCost(opp_edge, t2, TimeInfo::invalid(), flow_sources);

Cost tc = costing_->TransitionCostReverse(directededge->localedgeidx(), nodeinfo, opp_edge,
opp_pred_edge,
Expand Down

0 comments on commit 165ea84

Please sign in to comment.