Table of Contents

Class AddressComponent

Namespace
GoogleMapsApi.Entities.AddressValidation.Response
Assembly
GoogleMapsApi.dll

A single component (street, locality, etc.) of the validated address along with confirmation and transformation flags.

public sealed class AddressComponent
Inheritance
AddressComponent
Inherited Members

Properties

ComponentName

The localized text + language of this component.

[JsonPropertyName("componentName")]
public ComponentName? ComponentName { get; set; }

Property Value

ComponentName

ComponentType

Component type (e.g. "street_number", "route", "locality").

[JsonPropertyName("componentType")]
public string? ComponentType { get; set; }

Property Value

string

ConfirmationLevel

Confidence that this component is correctly identified.

[JsonPropertyName("confirmationLevel")]
public ConfirmationLevel ConfirmationLevel { get; set; }

Property Value

ConfirmationLevel

Inferred

True if Google inferred this component (it was not in the input).

[JsonPropertyName("inferred")]
public bool Inferred { get; set; }

Property Value

bool

Replaced

True if the component was replaced with a different one (e.g. correcting postal code).

[JsonPropertyName("replaced")]
public bool Replaced { get; set; }

Property Value

bool

SpellCorrected

True if a spelling correction was applied.

[JsonPropertyName("spellCorrected")]
public bool SpellCorrected { get; set; }

Property Value

bool

Unexpected

True if the component is in an unexpected position or value.

[JsonPropertyName("unexpected")]
public bool Unexpected { get; set; }

Property Value

bool