Skip to main content

Description

Extracts the longitude from a given IPv4 string (dot-decimal notation).

Syntax

LongitudeFromIP(ipaddress)

Examples

LongitudeFromIP('128.193.8.81') returns -123.2746

Notes

  • Negative longitude values are west of Greenwich, UK (0°).
  • The function uses GeoLite2 data created by MaxMind, available from http://www.maxmind.com

Return value datatype

Float

Impact of null value

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