Ipstack Model

The Ipstack Model interacts with the ipstack geolocation service (opens new window). You can subscribe to ipstack and use their services to perform geolocation lookups on your visitors.

FOR EDGE CASES ONLY

You will rarely need to call this model directly. If you have ipstack configured as your default geolocation service, then the preferred method is to perform geolocation normally.

Read how to properly manage Visitor Geolocation...

# Public Methods

# geolocate()

use doublesecretagency\googlemaps\models\Ipstack;

$visitor = Ipstack::geolocate($ipAddress);

Arguments

Returns

Visitor - A Visitor Model containing the approximate location of a visitor.