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 »

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!