mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
move linked place type into linked_place extratags
Using linked_place means that we don't overwrite any place tags on the boundary. This is important when we wanto to use the information for linking.
This commit is contained in:
@@ -127,3 +127,19 @@ Feature: Linking of places
|
||||
| N3:natural | - |
|
||||
| N3:place | R1 |
|
||||
|
||||
Scenario: Nodes with 'role' label are always linked
|
||||
Given the places
|
||||
| osm | class | type | admin | name | geometry |
|
||||
| R13 | boundary | administrative | 6 | Garbo | poly-area:0.1 |
|
||||
| N2 | place | hamlet | 15 | Vario | 0.006 0.00001 |
|
||||
And the relations
|
||||
| id | members | tags+type |
|
||||
| 13 | N2:label | boundary |
|
||||
When importing
|
||||
Then placex contains
|
||||
| object | linked_place_id |
|
||||
| N2 | R13 |
|
||||
And placex contains
|
||||
| object | centroid | name+name | extratags+linked_place |
|
||||
| R13 | 0.006 0.00001 | Garbo | hamlet |
|
||||
|
||||
|
||||
@@ -125,11 +125,11 @@ Feature: Updates of linked places
|
||||
When importing
|
||||
Then placex contains
|
||||
| object | extratags |
|
||||
| R1 | 'wikidata' : '34', 'place' : 'city' |
|
||||
| R1 | 'wikidata' : '34', 'linked_place' : 'city' |
|
||||
When updating places
|
||||
| osm | class | type | name | extra+oneway | admin | geometry |
|
||||
| N3 | place | city | newname | yes | 30 | 0.00001 0 |
|
||||
Then placex contains
|
||||
| object | extratags |
|
||||
| R1 | 'wikidata' : '34', 'oneway' : 'yes', 'place' : 'city' |
|
||||
| R1 | 'wikidata' : '34', 'oneway' : 'yes', 'linked_place' : 'city' |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user