Skip to main content

geolocations

Creates, updates, deletes, gets or lists a geolocations resource.

Overview

Namegeolocations
TypeResource
Idcloudflare.radar.geolocations

Fields

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
geolocationobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgeo_idformatRetrieves the requested Geolocation information. Geolocation names can be localized by sending an Accept-Language HTTP header with a BCP 47 language tag (e.g., Accept-Language: pt-PT). The full quality-value chain is supported (e.g., pt-PT,pt;q=0.9,en;q=0.8).
listselectlimit, offset, geoId, location, formatRetrieves a list of geolocations. Geolocation names can be localized by sending an Accept-Language HTTP header with a BCP 47 language tag (e.g., Accept-Language: pt-PT). The full quality-value chain is supported (e.g., pt-PT,pt;q=0.9,en;q=0.8).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
geo_idstringGeolocation ID. Refer to GeoNames
formatstringFormat in which results will be returned.
geoIdstringFilters results by geolocation. Specify a comma-separated list of GeoNames IDs.
limitintegerLimits the number of objects returned in the response.
locationstringFilters results by location. Specify a comma-separated list of alpha-2 location codes.
offsetintegerSkips the specified number of objects before fetching the results.

SELECT examples

Retrieves the requested Geolocation information. Geolocation names can be localized by sending an Accept-Language HTTP header with a BCP 47 language tag (e.g., Accept-Language: pt-PT). The full quality-value chain is supported (e.g., pt-PT,pt;q=0.9,en;q=0.8).

SELECT
geolocation
FROM cloudflare.radar.geolocations
WHERE geo_id = '{{ geo_id }}' -- required
AND format = '{{ format }}'
;