MakeGeoRegion Script and chart function
Last updated: 8/31/2026MakeGeoRegion() is used to validate geographic data in JSON and set the appropriate tags on the field. MakeGeoRegion() confirms the data is an array with polygons.
Syntax:
MakeGeoRegion(geo_data)
Return data type: string
Arguments:
| Argument | Description |
|---|---|
| geo_data |
The source of geographic data. This can be constructed with other geospatial functions, string literals, JSON functions, KML data, or other sources. geo_data is validated and only returns valid data of that type. Any invalid data returns a NULL value instead. |
Tip noteDo not use the Group by clause in the data load editor with this and other non-aggregating geospatial functions, because this will cause an error on load.