Skip to main content

geolocation

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

Overview

Namegeolocation
TypeResource
Idazure.maps_geolocation.geolocation

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
countryRegionobjectThe object containing the country/region information.
ipAddressstringThe IP Address of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_locationselectformat, ip, endpointx-ms-client-idApplies to: see pricing tiers _. This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.

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
endpointstringThe service endpoint host (no scheme). (default: )
formatstringDesired format of the response. Only json format is supported. "json" Default value is "json".
ipstringThe IP address. Both IPv4 and IPv6 are allowed. Required.
x-ms-client-idstring

SELECT examples

Applies to: see pricing tiers _. This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.

SELECT
countryRegion,
ipAddress
FROM azure.maps_geolocation.geolocation
WHERE format = '{{ format }}' -- required
AND ip = '{{ ip }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND x-ms-client-id = '{{ x-ms-client-id }}'
;