From 7b1a5566fbff0c19279e8cc8e6f959ab0d981904 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Fri, 15 May 2015 00:34:53 +0200 Subject: [PATCH] Move nodes inside the search radius --- features/nearest/pick.feature | 20 ++++++++--------- features/testbot/snap.feature | 42 ++++++++++++++++------------------- 2 files changed, 28 insertions(+), 34 deletions(-) diff --git a/features/nearest/pick.feature b/features/nearest/pick.feature index 08e665243..75dbc6ea1 100644 --- a/features/nearest/pick.feature +++ b/features/nearest/pick.feature @@ -57,14 +57,13 @@ Feature: Locating Nearest node on a Way - pick closest way Scenario: Nearest - High lat/lon Given the node locations - | node | lat | lon | - | a | -85 | -180 | - | b | -85 | -160 | - | c | -85 | -140 | - | x | 75 | -180 | - | y | 75 | -180 | - | v | 1 | 1 | - | w | -1 | -1 | + | node | lat | lon | + | a | -85 | -180 | + | b | -85 | -160 | + | c | -85 | -140 | + | x | -84.999 | -180 | + | y | -84.999 | -160 | + | z | -84.999 | -140 | And the ways | nodes | @@ -73,6 +72,5 @@ Feature: Locating Nearest node on a Way - pick closest way When I request nearest I should get | in | out | | x | a | - | y | a | - | v | c | - | w | c | + | y | b | + | z | c | diff --git a/features/testbot/snap.feature b/features/testbot/snap.feature index bee75bc44..01c590be5 100644 --- a/features/testbot/snap.feature +++ b/features/testbot/snap.feature @@ -98,30 +98,26 @@ Feature: Snap start/end point to the nearest way | b | x | xb | | c | x | xc | - Scenario: Find edges within 1km, and the same from 10km - Given a grid size of 1000 meters + Scenario: Find edges within 100m, and the same from 1km + Given a grid size of 100 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 | + | 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 |