fixes 2219

This commit is contained in:
Moritz Kobitzsch 2016-04-05 13:27:15 +02:00 committed by Patrick Niklaus
parent 849baea544
commit 470d7600b8
3 changed files with 21 additions and 2 deletions

View File

@ -85,3 +85,22 @@ Feature: Basic Map Matching
| trace | matchings |
| dcba | hgfe |
Scenario: Testbot - Matching with oneway streets
Given a grid size of 10 meters
Given the node map
| a | b | c | d |
| e | f | g | h |
And the ways
| nodes | oneway |
| ab | yes |
| bc | yes |
| cd | yes |
| hg | yes |
| gf | yes |
| fe | yes |
When I match I should get
| trace | matchings |
| dcba | hg,gf,fe |
| efgh | ab,bc,cd |

View File

@ -309,7 +309,7 @@ class ShortestPathRouting final
new_total_distance_to_forward, packed_leg_to_forward);
// if only the reverse node is valid (e.g. when using the match plugin) we
// actually need to move
if (target_phantom.forward_segment_id.enabled)
if (!target_phantom.forward_segment_id.enabled)
{
BOOST_ASSERT(target_phantom.reverse_segment_id.enabled);
new_total_distance_to_reverse = new_total_distance_to_forward;

View File

@ -19,7 +19,7 @@ namespace osrm
namespace extractor
{
class ProfileProperties;
struct ProfileProperties;
/**
* Parses the relations that represents turn restrictions.