Maxmind Model

The Maxmind Model interacts with the MaxMind geolocation service (opens new window). You can subscribe to MaxMind 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 MaxMind 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\Maxmind;

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

Arguments

  • $ip (string) - An IP address on which to perform the geolocation.
  • $parameters (array) - An optional configuration array.

Returns

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