fixes #731, perpendicular projection to nearest location

This commit is contained in:
Dennis Luxen
2013-12-16 17:36:36 +01:00
parent 4b46d07380
commit 96aff57275
3 changed files with 26 additions and 24 deletions
+9 -9
View File
@@ -59,12 +59,12 @@ Feature: Locating Nearest node on a Way - pick closest way
Given the node locations
| node | lat | lon |
| a | -85 | -180 |
| b | 0 | 0 |
| c | 85 | 180 |
| x | -70 | -100 |
| y | 70 | 100 |
| v | 1 | 1 |
| w | -1 | -1 |
| b | -85 | -160 |
| c | -85 | -140 |
| x | 75 | -180 |
| y | 75 | -180 |
| v | 1 | 1 |
| w | -1 | -1 |
And the ways
| nodes |
@@ -73,6 +73,6 @@ Feature: Locating Nearest node on a Way - pick closest way
When I request nearest I should get
| in | out |
| x | a |
| y | c |
| v | b |
| w | b |
| y | a |
| v | c |
| w | c |