Logically it's maybe a bid odd that we expandS->South but contractSouthwest->SW.
I chose to do it like this because the 'long form' of the diagonal is very verbose.
[edit] aagh actually this won't immediately solve the issue in the screenshot as the results are a mix of OA and OSM and we're not currently applying the same normalisation logic to OSM.
this is an extension to https://github.com/pelias/openaddresses/pull/477, please merge 477 first.
it adds https://github.com/pelias/openaddresses/commit/e90700e4ddc0ac5dd0a955dbdc3bcfcf1993bfd2 which contracts diagonal directionals such as 'Southeast' to 'SE' which solves this issue:
Logically it's maybe a bid odd that we expand
S->South
but contractSouthwest->SW
. I chose to do it like this because the 'long form' of the diagonal is very verbose.Opening this as a separate PR so it doesn't block merging https://github.com/pelias/openaddresses/pull/477 Will require a rebase after https://github.com/pelias/openaddresses/pull/477 is merged.