Just stick to the names

This commit is contained in:
2025-09-14 10:57:59 -04:00
parent 94f5802498
commit 2e0bee9d01

View File

@@ -44,10 +44,6 @@ func parseAddress(address string) map[string]any {
addr := map[string]any{}
for i := 0; i < len(pa); i++ {
// This is hacky, but renaming in libpostal involves retraining the model.
if pa[i].Label == "postcode" {
pa[i].Label = "zip_code"
}
addr[pa[i].Label] = pa[i].Value
}