\GeoIp2\ModelCountry

Model class for the data returned by GeoIP2 Country web service and database.

The only difference between the City and Insights model classes is which fields in each record may be populated. See https://dev.maxmind.com/geoip/geoip2/web-services for more details.

Summary

Methods
Properties
Constants
jsonSerialize()
$continent
$country
$maxmind
$registeredCountry
$representedCountry
$traits
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$continent

$continent : \GeoIp2\Record\Continent

Continent data for the requested IP address.

Type

\GeoIp2\Record\Continent

$country

$country : \GeoIp2\Record\Country

Country data for the requested IP address. This object represents the country where MaxMind believes the end user is located.

Type

\GeoIp2\Record\Country

$maxmind

$maxmind : \GeoIp2\Record\MaxMind

Data related to your MaxMind account.

Type

\GeoIp2\Record\MaxMind

$registeredCountry

$registeredCountry : \GeoIp2\Record\Country

Registered country data for the requested IP address. This record represents the country where the ISP has registered a given IP block and may differ from the user's country.

Type

\GeoIp2\Record\Country

$representedCountry

$representedCountry : \GeoIp2\Record\RepresentedCountry

Represented country data for the requested IP address. The represented country is used for things like military bases. It is only present when the represented country differs from the country.

Type

\GeoIp2\Record\RepresentedCountry

$traits

$traits : \GeoIp2\Record\Traits

Data for the traits of the requested IP address.

Type

\GeoIp2\Record\Traits

Methods

jsonSerialize()

jsonSerialize()