1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
use crateGranularity;
use ;
use ;
// -----------------------------------------------------------------------------
//
/// High level overview of the address validation result and geocode.
///
/// The `verdict` property summarizes the results of the address validation and
/// should be the first property to evaluate when building address checking
/// logic. The property can return a variety of fields, depending on the quality
/// of the output address.
///
/// [Completeness of the address](https://developers.google.com/maps/documentation/address-validation/understand-response#completeness_of_the_address)
///
/// The verdict returns the `addressComplete` property as a signal for a
/// high-quality address, which means specifically that it has no missing,
/// unresolved, or unexpected components:
///
/// ```json
/// "verdict": {
/// "inputGranularity": "PREMISE",
/// "validationGranularity": "PREMISE",
/// "geocodeGranularity": "PREMISE",
/// "addressComplete": true
/// }
/// ```
///
/// When the address has missing, unresolved, or unexpected components, the
/// field is set to `false`.
///
/// * Note: When the `addressComplete` property does not appear in the verdict
/// upon manual inspection, its value is false. Depending on your programming
/// language, you would either query the verdict for the presence of the
/// `addressComplete` property or query the property directly. See [Address
/// quality](https://developers.google.com/maps/documentation/address-validation/understand-response#address_quality)
/// below for an example.
///
/// [Address quality](https://developers.google.com/maps/documentation/address-validation/understand-response#address_quality)
///
/// A number of possible fields indicate either problems with address
/// components, or adjustments to them, such as inferred or missing address
/// components. For example, the following `verdict` property indicates an address
/// with unconfirmed components and a missing `addressComplete` field:
///
/// ```json
/// "verdict": {
/// "inputGranularity": "PREMISE",
/// "validationGranularity": "OTHER",
/// "geocodeGranularity": "OTHER",
/// "hasUnconfirmedComponents": true,
/// "hasInferredComponents": true
/// }
/// ```
///
/// ## Key Point
///
/// * Use the `verdict` property to get a baseline summary of the quality of the
/// address.
// struct Verdict