Table of Contents

Class PostalAddress

Namespace
GoogleMapsApi.Entities.AddressValidation.Request
Assembly
GoogleMapsApi.dll

Structured postal address sent to the Address Validation API or returned in a validated response. Mirrors Google's google.type.PostalAddress. Only RegionCode is strictly required; supply as many of the other fields as you have to improve validation quality.

public sealed class PostalAddress
Inheritance
PostalAddress
Inherited Members

Properties

AddressLines

Unstructured address lines (e.g. "1600 Amphitheatre Pkwy"). Provide at least one address line for meaningful validation.

[JsonPropertyName("addressLines")]
public List<string>? AddressLines { get; set; }

Property Value

List<string>

AdministrativeArea

Highest administrative subdivision (state, province, prefecture).

[JsonPropertyName("administrativeArea")]
public string? AdministrativeArea { get; set; }

Property Value

string

LanguageCode

BCP-47 language code of the contents of the address (e.g. "en-US").

[JsonPropertyName("languageCode")]
public string? LanguageCode { get; set; }

Property Value

string

Locality

City or town.

[JsonPropertyName("locality")]
public string? Locality { get; set; }

Property Value

string

Organization

Organization at the address.

[JsonPropertyName("organization")]
public string? Organization { get; set; }

Property Value

string

PostalCode

Postal code or ZIP code.

[JsonPropertyName("postalCode")]
public string? PostalCode { get; set; }

Property Value

string

Recipients

Recipients of the address (e.g. names).

[JsonPropertyName("recipients")]
public List<string>? Recipients { get; set; }

Property Value

List<string>

RegionCode

CLDR region code of the country/region of the address (e.g. "US", "GB"). Required.

[JsonPropertyName("regionCode")]
public string? RegionCode { get; set; }

Property Value

string

Revision

Schema revision of the PostalAddress. Leave unset to use the latest.

[JsonPropertyName("revision")]
public int? Revision { get; set; }

Property Value

int?

SortingCode

Additional country-specific sorting code (e.g. CEDEX in France).

[JsonPropertyName("sortingCode")]
public string? SortingCode { get; set; }

Property Value

string

Sublocality

Sub-locality (district or neighborhood).

[JsonPropertyName("sublocality")]
public string? Sublocality { get; set; }

Property Value

string