Skip to main content

Description

Extracts the region, state (e.g. USA, Germany) or province (Canada) from a given IPv4 string (dot-decimal notation).

Syntax

RegionNameFromIP(ipaddress)

Examples

RegionNameFromIP('128.193.8.81') returns ‘Oregon’.

Notes

The function uses GeoLite2 data created by MaxMind, available from http://www.maxmind.com

Return value datatype

String

Impact of null value

If input is null, returns null.
Last modified on October 12, 2026