Skip to main content

Geo types

The geo_type annotation marks a column as geographic, enabling Celiq to auto-select map charts in Discover and resolve named places to coordinates.

Supported geo types

geo_type valueWhat it maps toExample values
latitudeDecimal latitude40.7128, -33.8688
longitudeDecimal longitude-74.0060, 151.2093
country_nameFull country name"United States", "Germany"
country_codeISO 2 or ISO 3 code"US", "DEU"
cityCity name"New York", "Tokyo"
state_usUS state full name"California", "New York"
state_codeUS state abbreviation"CA", "NY"
zip_codePostal code"10001", "90210"
dmaDMA region name"New York", "Los Angeles"

Example annotation

attributes:
- name: customer_country
type: string
geo_type: country_name
label: Customer country

- name: store_lat
type: float
geo_type: latitude
label: Store latitude

- name: store_lng
type: float
geo_type: longitude
label: Store longitude

Auto-detection

If you don't add geo_type, Celiq auto-detects geographic columns by name pattern:

PatternDetected as
lat, latitude, geo_latlatitude
lon, lng, longitude, geo_lonlongitude
country, country_name, nationcountry_name
country_code, iso_country, iso2country_code
city, city_name, towncity
state, state_name, provincestate_us
zip, zip_code, postal_codezip_code
dma, dma_name, media_marketdma

Name resolution

When using named geo types (country_name, city, state_us), Celiq resolves them to lat/lng automatically using built-in lookup tables:

  • 194 countries — ISO 2, ISO 3, and full name variants
  • 164 major world cities
  • 51 US states (50 states + DC)

Rows that can't be resolved are excluded from the map with a warning.

Which chart types use geo_type?

ChartRequires
Geo Bubblelatitude + longitude, or any named geo type
Geo Heatmaplatitude + longitude
Geo Areacountry_name or country_code