fixes 2219
This commit is contained in:
		
							parent
							
								
									849baea544
								
							
						
					
					
						commit
						470d7600b8
					
				@ -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  |
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -19,7 +19,7 @@ namespace osrm
 | 
			
		||||
namespace extractor
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
class ProfileProperties;
 | 
			
		||||
struct ProfileProperties;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Parses the relations that represents turn restrictions.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user