From 2e0bee9d017553f5f26039be951170b060afd01d Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 14 Sep 2025 10:57:59 -0400 Subject: [PATCH] Just stick to the names --- internal/controllers/api.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/controllers/api.go b/internal/controllers/api.go index df4fd52..d8821ee 100644 --- a/internal/controllers/api.go +++ b/internal/controllers/api.go @@ -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 }