address

A postal address, looked up when it is written so that it is stored in its standard form.

At a glance

Writing

Write the address as one line of text: 123 Main St, Springfield, IL 62701. Writing it looks it up, and the value becomes the address's standard spelling. What the lookup found (the parts, the coordinates and the time zone) is kept in its validated metadata.

To fill an address field as someone types, suggest offers completions once three characters are typed, and resolve turns the chosen suggestion, or free text, into its street line, city, state, ZIP code and country.

Written as

A JSON string whose schema format is address.

Reading

The value reads as the address text: the standard spelling, or your own text when it is unverified. The parts are not separate values. The street number and name, city, county, state, ZIP code, country, coordinates and time zone are in the validated metadata. The time zone is the main one of the address's state, so in a state that spans two zones it can be the wrong one.

Querying

HQL compares an address as its text. There are no parts to filter on: nothing like .city or .postal_code follows the field's name. To find a city or a ZIP code, match it inside the text, for example ilike "%Springfield, IL%".

Every operator is in the HQL reference.

Editing

edit changes the address's JSON: formatted_address, components, coordinates and timezone. An edit is not looked up again, and the value is the edited formatted_address. An edit that removes one of these four keys is refused. If you change a part, such as the city in components, change formatted_address to match, or the text you read and search keeps the old address. To correct an address properly, write the new text instead, so that it is looked up.

Metadata

Derived values kept with a stored value:

Operations

Through the dtypes resource: