Skip to Content
Menu

Deprecated

ip_location()

Detect geolocation from IP address.

PHP April 1, 2021

Deprecated

Usage

PHP
nebula()->ip_location($data, $ip)

Parameters

$data
(Required) (String) What geo data to return
Default: None

$ip
(Optional) (String) The IP address to lookup
Default: $_SERVER['REMOTE_ADDR']

Parameter Notes

Requested $data string can include “country”, “country code”, “region”, “state”, “state code”, “city”, “zip”, “latitude”, “longitude”, “coordinates”, “timezone” and aliases of those.

Request or provide clarification »