Sarah Hoffmann
d4f3eda314
remove special casing for legacy tokenizer from BDD tests
2024-09-21 17:07:32 +02:00
Sarah Hoffmann
9627352ee4
search postcodes for highway areas around the area
...
So far the code would only accept postcodes that are inside the area.
Fixes #3304 .
2024-01-26 18:14:11 +01:00
Sarah Hoffmann
6eb9044353
adapt search algorithm to new postcode format in word
2022-06-23 23:42:31 +02:00
Sarah Hoffmann
0f00f4968c
fix up BDD tests for postcode changes
...
Includes smaller code fixes found by the tests.
2022-06-23 23:42:31 +02:00
Sarah Hoffmann
8080625747
remove postcodes from countries that don't have them
...
The postcodes will only be removed as a 'computed postcode' they
are still searchable for the given object.
2022-06-23 23:42:31 +02:00
Sarah Hoffmann
02068aec7f
bdd: move import tests from scenes to grid descriptions
2022-06-17 11:54:18 +02:00
Sarah Hoffmann
f74228830d
bdd: run full import on tests
...
This uncovered a couple of outdated/wrong tests which have been
fixed, too.
2022-02-24 14:27:51 +01:00
Sarah Hoffmann
324b1b5575
bdd tests: do not query word table directly
...
The BDD tests cannot make assumptions about the structure of the
word table anymore because it depends on the tokenizer. Use more
abstract descriptions instead that ask for specific kinds of
tokens.
2021-07-28 11:31:47 +02:00
Sarah Hoffmann
3aac51c81f
switch BDD tests to always use search API
2021-06-06 15:27:52 +02:00
Sarah Hoffmann
3600709116
make sure that all postcodes have an entry in word
...
It may happen that two different postcodes normalize to exactly
the same token. In that case we still need two different entries
in the word table. Token lookup will then make sure that the correct
one is choosen.
Fixes #1953 .
2020-09-17 17:11:22 +02:00
Sarah Hoffmann
cc17aa8d6b
Remove postcodes also from word table when they no longer exist
...
Also adds tests for postcode updates.
Fixes #1273 .
2019-01-04 23:11:47 +01:00
Sarah Hoffmann
48d4ea5542
Do not have postcode node appear in addresses directly
...
Many of the postcode nodes are actually derived from
incomplete addresses and are as such not even centroids.
Better let them only take part in the address computation
via the postcode table.
2018-08-05 14:25:20 +02:00
Sarah Hoffmann
ae83ceab5e
ignore Unicode format characters for normalization
...
Also adds tests.
Fixes #1007 .
2018-04-10 22:48:17 +02:00
Edward Betts
7e00a6e2ff
Correct spelling mistakes.
2018-02-18 13:11:35 +00:00
Sarah Hoffmann
e55ac77c94
add simple tests for postcode import
2017-08-19 19:37:06 +02:00