Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2
minLevel2
typeflat

...

Uses MaxMind GeoIP2 services to return the ISO 3166-1 two-character country code associated with an IPv4 or IPv6 address. 

Note

Agnostic operation alias

The alias countrycode is an agnostic operation aimed at defining more generic names for the GeoIP v2 operations.

Note that agnostic operations are only available in our APIs for now. These will be available in the search window of the Devo app in future releases.

How does it work in the search window?

...

Use the operator select... as...  and add the operation syntax to create the new column. These are the valid formats of the Geolocated Country with MaxMind GeoIP2 operation:

  • mm2country(ip)

  • mm2country(ip6)

Example

Copy the following LINQ script and try the above example on the demo.ecommerce.data table. 

Code Block
from demo.ecommerce.data
select mm2country(clientIpAddress) as countryCode