New algorithm for detecting multiple conflicting features

This commit is contained in:
Eli Ribble 2026-04-16 04:21:11 +00:00
parent f490e4a1a4
commit d395699dc4
No known key found for this signature in database
2 changed files with 34 additions and 13 deletions

View file

@ -162,7 +162,7 @@ func (gf GeocodeFeature) CountryCode() string {
if gf.Properties.Context.WhosOnFirst.Country.Abbreviation != "" {
return gf.Properties.Context.WhosOnFirst.Country.Abbreviation
}
return "none"
return ""
}
func (gf GeocodeFeature) Locality() string {
if gf.Properties.Locality != "" {
@ -171,7 +171,7 @@ func (gf GeocodeFeature) Locality() string {
if gf.Properties.Context.WhosOnFirst.Locality.Name != "" {
return gf.Properties.Context.WhosOnFirst.Locality.Name
}
return "none"
return ""
}
func (gf GeocodeFeature) Number() string {
if gf.Properties.AddressComponents.Number != "" {
@ -180,7 +180,7 @@ func (gf GeocodeFeature) Number() string {
if gf.Properties.HouseNumber != "" {
return gf.Properties.HouseNumber
}
return "none"
return ""
}
func (gf GeocodeFeature) PostalCode() string {
if gf.Properties.PostalCode != "" {
@ -189,7 +189,7 @@ func (gf GeocodeFeature) PostalCode() string {
if gf.Properties.AddressComponents.PostalCode != "" {
return gf.Properties.AddressComponents.PostalCode
}
return "none"
return ""
}
func (gf GeocodeFeature) Region() string {
if gf.Properties.Region != "" {
@ -198,7 +198,7 @@ func (gf GeocodeFeature) Region() string {
if gf.Properties.Context.WhosOnFirst.Region.Name != "" {
return gf.Properties.Context.WhosOnFirst.Region.Name
}
return "none"
return ""
}
func (gf GeocodeFeature) Street() string {
if gf.Properties.Street != "" {
@ -207,5 +207,5 @@ func (gf GeocodeFeature) Street() string {
if gf.Properties.AddressComponents.Street != "" {
return gf.Properties.AddressComponents.Street
}
return "none"
return ""
}