MeridianMERIDIAN

geography

Locations, addresses, coordinates, and regional identifiers

7 categories, 25 types: 3 a sibling in its category also accepts, none accepted by another category's rule, 6 that decompose into parts, 1 flagged as personal data, 2 in Meridian's open data.

7 categories · 25 types

The 7 geography categories

CategoryTypesCasts toFor exampleWithin the group
7VARCHAR, DOUBLE, POINT-74.00601 a sibling also accepts
6VARCHARUS2 a sibling also accepts
5VARCHAR8471.30each told apart
4VARCHAR123 Main Street, New York, N…each told apart
1VARCHAR+1—
1VARCHARPOINT (30 10)—
1VARCHAR8928308280fffff—

Where geography categories overlap

No value a type writes is accepted by another category's rule.

Which geography type is it?

2 of 25 geography types in 1 category accept it, and read it alike.

Full Address, Postal Code, Street Name, Street Suffix, Longitude, City Name, Continent Name, Country Name and Region / State carry no pattern or format, so they have no rule to ask.

TypeCategoryReads it as
Country Code country_codelocationUS
State/Province Code state_codelocationUS

What the engine extracts

  • coordinate2 of 7latitude · latitude_deg · latitude_min · longitude · longitude_deg
  • transportation1 of 5country · location
  • address2 of 4city · first_part · street_name · street_number
  • contact1 of 1code

In Meridian's open data

Use it

CLI · DuckDB
$ for v in '-74.0060' 'US' '8471.30' '123 Main Street, New York, NY 10001, USA' '+1' 'POINT (30 10)' '8928308280fffff'; do finetype infer -i "$v"; done

SELECT v, ft_infer(v) FROM (VALUES ('-74.0060'), ('US'), ('8471.30'), ('123 Main Street, New York, NY 10001, USA'), ('+1'), ('POINT (30 10)'), ('8928308280fffff')) t(v);

Type Registry