MeridianMERIDIAN

State/Province Code

2-letter state or province abbreviation. Locale-specific due to country-dependent subdivision codes (e.g., US states, CA provinces, AU states/territories).

State/Province Code

geography.location.state_code

2-letter state or province abbreviation. Locale-specific due to country-dependent subdivision codes (e.g., US states, CA provinces, AU states/territories).

Domain
geography
Category
location
Casts to
VARCHAR
Scope
Locale-specific
Locales
EN_US, EN_CA, EN_AU

Try it

CLI
$ finetype infer -i "CA" --mode column
→ geography.location.state_code

DuckDB

Detect
SELECT finetype('CA');
-- → 'geography.location.state_code'
Cast expression
UPPER(CAST({col} AS VARCHAR))
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'geography.location.state_code';

JSON Schema

finetype taxonomy geography.location.state_code -o json-schema
{
  "$id": "https://meridian.online/schemas/geography.location.state_code",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "2-letter state or province abbreviation. Locale-specific due to country-dependent subdivision codes (e.g., US states, CA provinces, AU states/territories).",
  "examples": [
    "CA",
    "NY",
    "TX",
    "FL",
    "ON"
  ],
  "pattern": "^[A-Z]{2}$",
  "title": "State/Province Code",
  "type": "string",
  "x-finetype-label": "geography.location.state_code",
  "x-finetype-pii": false
}

Examples

CANYTXFLON

Aliases

state_abbreviationprovince_code

Type Registry