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
use ;
use ;
// -----------------------------------------------------------------------------
//
/// The various granularities that an address or a geocode can have. When used
/// to indicate granularity for an address, these values indicate with how fine
/// a granularity the address identifies a mailing destination. For example, an
/// address such as "123 Main Street, Redwood City, CA, 94061" identifies a
/// `PREMISE` while something like "Redwood City, CA, 94061" identifies a
/// `LOCALITY`. However, if we are unable to find a geocode for "123 Main
/// Street" in Redwood City, the geocode returned might be of `LOCALITY`
/// granularity even though the address is more granular.
///
/// Address granularity refers to the level of detail used in determining the
/// specificity of an address or geocode. Address specificity in the
/// `validationGranularity` response is a key signal for whether or not an
/// address is deliverable.
///
/// The verdict property returns these granularity signals:
///
/// * `inputGranularity` — Describes the level of detail captured from the
/// address sent to the Address Validation API. The level of address detail in
/// the request influences the level of address detail in the validation
/// response. For example, an address with an inputGranularity below `PREMISE`
/// below level does not typically result in a `validationGranularity` to a
/// `PREMISE` level.
///
/// * `validationGranularity` — The granularity level that the Address
/// Validation API can fully validate the address to. In most cases, a
/// granularity level of `PREMISE` or `SUB_PREMISE` indicates a quality
/// address that is likely deliverable.
///
/// * `geocodeGranularity` — Describes the level of detail of the geocode
/// associated with the address. For example, Google records might indicate
/// the existence of an apartment number, but not a precise location for that
/// particular apartment within a large apartment complex. In that case, the
/// `validationGranularity` is `SUB_PREMISE` but the `geocodeGranularity` is
// `PREMISE`.
// enum Granularity