Merge pull request #450 from ibikecph/cuke_nearest_range
test checking the range of nearest edge search
This commit is contained in:
		
						commit
						ffed740fdf
					
				@ -28,31 +28,6 @@ Feature: Handle bad data in a graceful manner
 | 
				
			|||||||
		 | 1    | 1  |       |
 | 
							 | 1    | 1  |       |
 | 
				
			||||||
		 | 2    | 2  |       |
 | 
							 | 2    | 2  |       |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Scenario: Start/end point far outside data area
 | 
					 | 
				
			||||||
		Given the node map
 | 
					 | 
				
			||||||
		 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |    | 1 |
 | 
					 | 
				
			||||||
		 | a | b |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |    | 2 |
 | 
					 | 
				
			||||||
		 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |    | 3 |
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		Given the ways
 | 
					 | 
				
			||||||
		 | nodes |
 | 
					 | 
				
			||||||
		 | ab    |
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		When I route I should get
 | 
					 | 
				
			||||||
		 | from | to | route |
 | 
					 | 
				
			||||||
		 | 1    | a  | ab    |
 | 
					 | 
				
			||||||
		 | 2    | a  | ab    |
 | 
					 | 
				
			||||||
		 | 3    | a  | ab    |
 | 
					 | 
				
			||||||
		 | 1    | b  |       |
 | 
					 | 
				
			||||||
		 | 2    | b  |       |
 | 
					 | 
				
			||||||
		 | 3    | b  |       |
 | 
					 | 
				
			||||||
		 | 1    | 2  |       |
 | 
					 | 
				
			||||||
		 | 1    | 3  |       |
 | 
					 | 
				
			||||||
		 | 2    | 1  |       |
 | 
					 | 
				
			||||||
		 | 2    | 3  |       |
 | 
					 | 
				
			||||||
		 | 3    | 1  |       |
 | 
					 | 
				
			||||||
		 | 3    | 2  |       |
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	@poles
 | 
						@poles
 | 
				
			||||||
	Scenario: No routing close to the north/south pole
 | 
						Scenario: No routing close to the north/south pole
 | 
				
			||||||
	Mercator is undefined close to the poles.
 | 
						Mercator is undefined close to the poles.
 | 
				
			||||||
 | 
				
			|||||||
@ -94,3 +94,60 @@ Feature: Snap start/end point to the nearest way
 | 
				
			|||||||
		 | a    | x  | xa    |
 | 
							 | a    | x  | xa    |
 | 
				
			||||||
		 | b    | x  | xb    |
 | 
							 | b    | x  | xb    |
 | 
				
			||||||
		 | c    | x  | xc    |
 | 
							 | c    | x  | xc    |
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						@xx
 | 
				
			||||||
 | 
						Scenario: Find edges within 1km, but not 10km
 | 
				
			||||||
 | 
							Given a grid size of 1000 meters
 | 
				
			||||||
 | 
							Given the node map
 | 
				
			||||||
 | 
							 | p |   |   |   |   |   |   |   |   |   |   | i |   |   |   |   |   |   |   |   |   |   | j |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   | 8 |   | 1 |   | 2 |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   | h | a | b |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 | o |   |   |   |   |   |   |   |   | 7 | g | x | c | 3 |   |   |   |   |   |   |   |   | k |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   | f | e | d |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   | 6 |   | 5 |   | 4 |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
 | 
				
			||||||
 | 
							 | n |   |   |   |   |   |   |   |   |   |   | m |   |   |   |   |   |   |   |   |   |   | l |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							Given the ways
 | 
				
			||||||
 | 
							 | nodes |
 | 
				
			||||||
 | 
							 | xa    |
 | 
				
			||||||
 | 
							 | xb    |
 | 
				
			||||||
 | 
							 | xc    |
 | 
				
			||||||
 | 
							 | xd    |
 | 
				
			||||||
 | 
							 | xe    |
 | 
				
			||||||
 | 
							 | xf    |
 | 
				
			||||||
 | 
							 | xg    |
 | 
				
			||||||
 | 
							 | xh    |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							When I route I should get
 | 
				
			||||||
 | 
							 | from | to | route |
 | 
				
			||||||
 | 
							 | x    | 1  | xa    |
 | 
				
			||||||
 | 
							 | x    | 2  | xb    |
 | 
				
			||||||
 | 
							 | x    | 3  | xc    |
 | 
				
			||||||
 | 
							 | x    | 4  | xd    |
 | 
				
			||||||
 | 
							 | x    | 5  | xe    |
 | 
				
			||||||
 | 
							 | x    | 6  | xf    |
 | 
				
			||||||
 | 
							 | x    | 7  | xg    |
 | 
				
			||||||
 | 
							 | x    | 8  | xh    |
 | 
				
			||||||
 | 
							 | x    | i  |       |
 | 
				
			||||||
 | 
							 | x    | j  |       |
 | 
				
			||||||
 | 
							 | x    | k  |       |
 | 
				
			||||||
 | 
							 | x    | l  |       |
 | 
				
			||||||
 | 
							 | x    | m  |       |
 | 
				
			||||||
 | 
							 | x    | n  |       |
 | 
				
			||||||
 | 
							 | x    | o  |       |
 | 
				
			||||||
 | 
							 | x    | p  |       |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user