reorder parenting search for POI level

Push back the more expensive node-on-way parenting which is rather
rare anyways. Prefer assodicatedStreet relations and addr:* tags
instead.
This commit is contained in:
Sarah Hoffmann
2015-02-25 23:04:24 +01:00
parent 9d9745b378
commit 27ce2afbcf
2 changed files with 69 additions and 71 deletions

View File

@@ -389,7 +389,7 @@ Feature: Parenting of objects
| N3 | W2 | None | nowhere | None
### Scenario 20
Scenario: POIs parent a road if and only if they are attached to it
Scenario: POIs parent a road if they are attached to it
Given the scene points-on-roads
And the named place nodes
| osm_id | class | type | street | geometry
@@ -408,8 +408,8 @@ Feature: Parenting of objects
When importing
Then table placex contains
| object | parent_place_id
| N1 | W2
| N2 | W1
| N1 | W1
| N2 | W2
| N3 | W1
| N4 | W2