# MakeGeoLine Script and chart function

MakeGeoLine() is used to validate geographic data in JSON and set the appropriate tags on the field. MakeGeoLine() confirms the data is an array with points.

Syntax:

MakeGeoLine(geo\_data)

Return data type: string

Arguments:

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.<br><br>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.

[Loading your own map data](https://help.qlik.com/en-US/sense/May2026/Subsystems/Hub/Content/Sense_Hub/Visualizations/Map/load-map-data.htm)