Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleMapsAddressvalidationV1AddressComponent

import type { GoogleMapsAddressvalidationV1AddressComponent } from "https://googleapis.deno.dev/v1/addressvalidation:v1.ts";

Represents an address component, such as a street, city, or state.

interface GoogleMapsAddressvalidationV1AddressComponent {
componentType?: string;
confirmationLevel?:
| "CONFIRMATION_LEVEL_UNSPECIFIED"
| "CONFIRMED"
| "UNCONFIRMED_BUT_PLAUSIBLE"
| "UNCONFIRMED_AND_SUSPICIOUS";
inferred?: boolean;
replaced?: boolean;
spellCorrected?: boolean;
unexpected?: boolean;
}

§Properties

§

The name for this component.

§
componentType?: string
[src]

The type of the address component. See Table 2: Additional types returned by the Places service for a list of possible types.

§
confirmationLevel?: "CONFIRMATION_LEVEL_UNSPECIFIED" | "CONFIRMED" | "UNCONFIRMED_BUT_PLAUSIBLE" | "UNCONFIRMED_AND_SUSPICIOUS"
[src]

Indicates the level of certainty that we have that the component is correct.

§
inferred?: boolean
[src]

Indicates that the component was not part of the input, but we inferred it for the address location and believe it should be provided for a complete address.

§
replaced?: boolean
[src]

Indicates the name of the component was replaced with a completely different one, for example a wrong postal code being replaced with one that is correct for the address. This is not a cosmetic change, the input component has been changed to a different one.

§
spellCorrected?: boolean
[src]

Indicates a correction to a misspelling in the component name. The API does not always flag changes from one spelling variant to another, such as when changing "centre" to "center". It also does not always flag common misspellings, such as when changing "Amphitheater Pkwy" to "Amphitheatre Pkwy".

§
unexpected?: boolean
[src]

Indicates an address component that is not expected to be present in a postal address for the given region. We have retained it only because it was part of the input.