TOCOUNTRY

Returns the country name for the specified geolocation.

Sample usage

TOCOUNTRY(Country Code)

Syntax

TOCOUNTRY(X [,input_format])

Parameters

  • X - A text field or expression, or a geo field or expression.
  • input_format - format for text fieldX. Optional ifX is correctly configured as a geo field.

Input format

TOCOUNTRY accepts the following input formats ifX is a text field:

Examples

Example formulaInputOutput
TOCOUNTRY(Country Code) PE Peru
TOCOUNTRY(Region ID,'REGION_ISO_CODE') US-CA United States

Related resources

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.