mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add tests for import of interpolations
This commit is contained in:
@@ -544,3 +544,20 @@ Feature: Tag evaluation
|
|||||||
Then place contains
|
Then place contains
|
||||||
| object | class | type | address |
|
| object | class | type | address |
|
||||||
| N290393920 | place | house| 'city' : 'Perpignan', 'country' : 'FR', 'housenumber' : '43\\', 'postcode' : '66000', 'street' : 'Rue Pierre Constant d`Ivry' |
|
| N290393920 | place | house| 'city' : 'Perpignan', 'country' : 'FR', 'housenumber' : '43\\', 'postcode' : '66000', 'street' : 'Rue Pierre Constant d`Ivry' |
|
||||||
|
|
||||||
|
Scenario: odd interpolation
|
||||||
|
When loading osm data
|
||||||
|
"""
|
||||||
|
n4 Taddr:housenumber=3 x0 y0
|
||||||
|
n5 Taddr:housenumber=15 x0 y0.00001
|
||||||
|
w12 Taddr:interpolation=odd Nn4,n5
|
||||||
|
w13 Taddr:interpolation=even Nn4,n5
|
||||||
|
w14 Taddr:interpolation=-3 Nn4,n5
|
||||||
|
"""
|
||||||
|
Then place contains
|
||||||
|
| object | class | type | address |
|
||||||
|
| N4 | place | house | 'housenumber' : '3' |
|
||||||
|
| N5 | place | house | 'housenumber' : '15' |
|
||||||
|
| W12 | place | houses | 'interpolation' : 'odd' |
|
||||||
|
| W13 | place | houses | 'interpolation' : 'even' |
|
||||||
|
| W14 | place | houses | 'interpolation' : '-3' |
|
||||||
|
|||||||
Reference in New Issue
Block a user