@@ -70,17 +70,40 @@ type (
70
70
// Analysis contains all output fields defined here:
71
71
// https://smartystreets.com/docs/us-street-api#analysis
72
72
Analysis struct {
73
- DPVMatchCode string `json:"dpv_match_code,omitempty"`
74
- DPVFootnotes string `json:"dpv_footnotes,omitempty"`
75
- DPVCMRACode string `json:"dpv_cmra,omitempty"`
76
- DPVVacantCode string `json:"dpv_vacant,omitempty"`
77
- DPVNoStat string `json:"dpv_no_stat,omitempty"`
78
- Active string `json:"active,omitempty"`
79
- Footnotes string `json:"footnotes,omitempty"` // https://smartystreets.com/docs/us-street-api#footnotes
80
- LACSLinkCode string `json:"lacslink_code,omitempty"`
81
- LACSLinkIndicator string `json:"lacslink_indicator,omitempty"`
82
- SuiteLinkMatch bool `json:"suitelink_match,omitempty"`
83
- EWSMatch bool `json:"ews_match,omitempty"` // deprecated
84
- EnhancedMatch string `json:"enhanced_match,omitempty"` //v2 integration
73
+ DPVMatchCode string `json:"dpv_match_code,omitempty"`
74
+ DPVFootnotes string `json:"dpv_footnotes,omitempty"`
75
+ DPVCMRACode string `json:"dpv_cmra,omitempty"`
76
+ DPVVacantCode string `json:"dpv_vacant,omitempty"`
77
+ DPVNoStat string `json:"dpv_no_stat,omitempty"`
78
+ Active string `json:"active,omitempty"`
79
+ Footnotes string `json:"footnotes,omitempty"` // https://smartystreets.com/docs/us-street-api#footnotes
80
+ LACSLinkCode string `json:"lacslink_code,omitempty"`
81
+ LACSLinkIndicator string `json:"lacslink_indicator,omitempty"`
82
+ SuiteLinkMatch bool `json:"suitelink_match,omitempty"`
83
+ EWSMatch bool `json:"ews_match,omitempty"` // deprecated
84
+ EnhancedMatch string `json:"enhanced_match,omitempty"` //v2 integration
85
+ Components ComponentAnalysis `json:"components,omitempty"`
86
+ }
87
+
88
+ ComponentAnalysis struct {
89
+ PrimaryNumber MatchInfo `json:"primary_number,omitempty"`
90
+ StreetPredirection MatchInfo `json:"street_predirection,omitempty"`
91
+ StreetName MatchInfo `json:"street_name,omitempty"`
92
+ StreetPostdirection MatchInfo `json:"street_postdirection,omitempty"`
93
+ StreetSuffix MatchInfo `json:"street_suffix,omitempty"`
94
+ SecondaryNumber MatchInfo `json:"secondary_number,omitempty"`
95
+ SecondaryDesignator MatchInfo `json:"secondary_designator,omitempty"`
96
+ ExtraSecondaryNumber MatchInfo `json:"extra_secondary_number,omitempty"`
97
+ ExtraSecondaryDesignator MatchInfo `json:"extra_secondary_designator,omitempty"`
98
+ CityName MatchInfo `json:"city_name,omitempty"`
99
+ StateAbbreviation MatchInfo `json:"state_abbreviation,omitempty"`
100
+ ZIPCode MatchInfo `json:"zipcode,omitempty"`
101
+ Plus4Code MatchInfo `json:"plus4_code,omitempty"`
102
+ Urbanization MatchInfo `json:"urbanization,omitempty"`
103
+ }
104
+
105
+ MatchInfo struct {
106
+ Status string `json:"status,omitempty"`
107
+ Change []string `json:"change,omitempty"`
85
108
}
86
109
)
0 commit comments