Table of Contents | ||||||
---|---|---|---|---|---|---|
|
...
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 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 |