Just stick to the names
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user