Special Segmentation Format: geography

The geography value is made up of 3 granularity levels - continent, country, and usState. These granularity levels are explained in Special Filter: geography. A particular level needs to be selected, and this is to be included in the property name such as geography.continent or geography.country.

The following example requests data segmented by all countries:

{

    "segmentBy": "geography.country",

    "segments": [

        {

            "type": "regex",

            "value": ".*",

            "split": true

        }

    ]

}In the above example, no filtering is being done, and instead, a regular expression to include everything is set as the value. This will result in all countries to be returned.