Class Verdict
High level overview of the address validation result and geocode.
Namespace: Google.Maps.AddressValidation.V1
Assembly: Google.Maps.AddressValidation.V1.dll
Syntax
public sealed class Verdict : IMessage<Verdict>, IEquatable<Verdict>, IDeepCloneable<Verdict>, IBufferMessage, IMessage
Constructors
Verdict()
Declaration
public Verdict()
Verdict(Verdict)
Declaration
public Verdict(Verdict other)
Parameters
Type | Name | Description |
---|---|---|
Verdict | other |
Properties
AddressComplete
The address is considered complete if there are no unresolved tokens, no
unexpected or missing address components. See
[missing_component_types
][google.maps.addressvalidation.v1.Address.missing_component_types],
[unresolved_tokens
][google.maps.addressvalidation.v1.Address.unresolved_tokens]
or
[unexpected
][google.maps.addressvalidation.v1.AddressComponent.unexpected]
fields for more details.
Declaration
public bool AddressComplete { get; set; }
Property Value
Type | Description |
---|---|
bool |
GeocodeGranularity
Information about the granularity of the
[geocode
][google.maps.addressvalidation.v1.ValidationResult.geocode].
This can be understood as the semantic meaning of how coarse or fine the
geocoded location is.
This can differ from the validation_granularity
above occasionally. For
example, our database might record the existence of an apartment number but
do not have a precise location for the apartment within a big apartment
complex. In that case, the validation_granularity
will be SUB_PREMISE
but the geocode_granularity
will be PREMISE
.
Declaration
public Verdict.Types.Granularity GeocodeGranularity { get; set; }
Property Value
Type | Description |
---|---|
Verdict.Types.Granularity |
HasInferredComponents
At least one address component was inferred (added) that wasn't in the input, see [google.maps.addressvalidation.v1.Address.address_components] for details.
Declaration
public bool HasInferredComponents { get; set; }
Property Value
Type | Description |
---|---|
bool |
HasReplacedComponents
At least one address component was replaced, see [google.maps.addressvalidation.v1.Address.address_components] for details.
Declaration
public bool HasReplacedComponents { get; set; }
Property Value
Type | Description |
---|---|
bool |
HasUnconfirmedComponents
At least one address component cannot be categorized or validated, see [google.maps.addressvalidation.v1.Address.address_components] for details.
Declaration
public bool HasUnconfirmedComponents { get; set; }
Property Value
Type | Description |
---|---|
bool |
InputGranularity
The granularity of the input address. This is the result of parsing the
input address and does not give any validation signals. For validation
signals, refer to validation_granularity
below.
For example, if the input address includes a specific apartment number,
then the input_granularity
here will be SUB_PREMISE
. If we cannot match
the apartment number in the databases or the apartment number is invalid,
the validation_granularity
will likely be PREMISE
or below.
Declaration
public Verdict.Types.Granularity InputGranularity { get; set; }
Property Value
Type | Description |
---|---|
Verdict.Types.Granularity |
ValidationGranularity
The granularity level that the API can fully validate the address to.
For example, an validation_granularity
of PREMISE
indicates all address
components at the level of PREMISE
or more coarse can be validated.
Per address component validation result can be found in [google.maps.addressvalidation.v1.Address.address_components].
Declaration
public Verdict.Types.Granularity ValidationGranularity { get; set; }
Property Value
Type | Description |
---|---|
Verdict.Types.Granularity |