- Scenario: wrongly formatted GB postcodes are down-ranked
- Given the places
- | osm | class | type | postcode | geometry |
- | N1 | place | postcode | EA452CD | country:gb |
- | N2 | place | postcode | E45 23 | country:gb |
- When importing
- Then location_postcode contains exactly
- | postcode | country | rank_search | rank_address |
- | EA452CD | gb | 30 | 30 |
- | E45 23 | gb | 30 | 30 |
-
- Scenario: search and address rank for DE postcodes correctly assigned
- Given the places
- | osm | class | type | postcode | geometry |
- | N1 | place | postcode | 56427 | country:de |
- | N2 | place | postcode | 5642 | country:de |
- | N3 | place | postcode | 5642A | country:de |
- | N4 | place | postcode | 564276 | country:de |
- When importing
- Then location_postcode contains exactly
- | postcode | country | rank_search | rank_address |
- | 56427 | de | 21 | 11 |
- | 5642 | de | 30 | 30 |
- | 5642A | de | 30 | 30 |
- | 564276 | de | 30 | 30 |
-
- Scenario: search and address rank for other postcodes are correctly assigned