Skip to Content

ip_location()

Detect geolocation from IP address.

PHP April 26, 2017

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 »

Source File

This function was not found in /libs/Functions.php. Please report this error.

No Hooks

This function does not have any filters or actions available. Request one?

Override

This function can not be short-circuited with an override filter. Request one?