Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • MaxMind
    • Db
      • Reader
  • PHP

Classes

  • GeoIp2\Database\Reader
  • GeoIp2\Model\AnonymousIp
  • GeoIp2\Model\Asn
  • GeoIp2\Model\City
  • GeoIp2\Model\ConnectionType
  • GeoIp2\Model\Country
  • GeoIp2\Model\Domain
  • GeoIp2\Model\Enterprise
  • GeoIp2\Model\Insights
  • GeoIp2\Model\Isp
  • GeoIp2\Record\AbstractPlaceRecord
  • GeoIp2\Record\AbstractRecord
  • GeoIp2\Record\City
  • GeoIp2\Record\Continent
  • GeoIp2\Record\Country
  • GeoIp2\Record\Location
  • GeoIp2\Record\MaxMind
  • GeoIp2\Record\Postal
  • GeoIp2\Record\RepresentedCountry
  • GeoIp2\Record\Subdivision
  • GeoIp2\Record\Traits
  • GeoIp2\WebService\Client
  • MaxMind\Db\Reader
  • MaxMind\Db\Reader\Decoder
  • MaxMind\Db\Reader\Metadata
  • MaxMind\Db\Reader\Util

Interfaces

  • GeoIp2\ProviderInterface
  • JsonSerializable
  • Throwable

Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • Exception
  • GeoIp2\Exception\AddressNotFoundException
  • GeoIp2\Exception\AuthenticationException
  • GeoIp2\Exception\GeoIp2Exception
  • GeoIp2\Exception\HttpException
  • GeoIp2\Exception\InvalidRequestException
  • GeoIp2\Exception\OutOfQueriesException
  • InvalidArgumentException
  • LogicException
  • MaxMind\Db\Reader\InvalidDatabaseException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace GeoIp2\Model;
 4: 
 5: /**
 6:  * Model class for the data returned by GeoIP2 Precision: Insights web service.
 7:  *
 8:  * The only difference between the City and Insights model classes is which
 9:  * fields in each record may be populated. See
10:  * http://dev.maxmind.com/geoip/geoip2/web-services more details.
11:  *
12:  * @property-read \GeoIp2\Record\City $city City data for the requested IP
13:  * address.
14:  * @property-read \GeoIp2\Record\Continent $continent Continent data for the
15:  * requested IP address.
16:  * @property-read \GeoIp2\Record\Country $country Country data for the requested
17:  * IP address. This object represents the country where MaxMind believes the
18:  * end user is located.
19:  * @property-read \GeoIp2\Record\Location $location Location data for the
20:  * requested IP address.
21:  * @property-read \GeoIp2\Record\MaxMind $maxmind Data related to your MaxMind
22:  * account.
23:  * @property-read \GeoIp2\Record\Country $registeredCountry Registered country
24:  * data for the requested IP address. This record represents the country
25:  * where the ISP has registered a given IP block and may differ from the
26:  * user's country.
27:  * @property-read \GeoIp2\Record\RepresentedCountry $representedCountry
28:  * Represented country data for the requested IP address. The represented
29:  * country is used for things like military bases. It is only present when
30:  * the represented country differs from the country.
31:  * @property-read array $subdivisions An array of {@link \GeoIp2\Record\Subdivision}
32:  * objects representing the country subdivisions for the requested IP
33:  * address. The number and type of subdivisions varies by country, but a
34:  * subdivision is typically a state, province, county, etc. Subdivisions
35:  * are ordered from most general (largest) to most specific (smallest).
36:  * If the response did not contain any subdivisions, this method returns
37:  * an empty array.
38:  * @property-read \GeoIp2\Record\Subdivision $mostSpecificSubdivision An  object
39:  * representing the most specific subdivision returned. If the response
40:  * did not contain any subdivisions, this method returns an empty
41:  * {@link \GeoIp2\Record\Subdivision} object.
42:  * @property-read \GeoIp2\Record\Traits $traits Data for the traits of the
43:  * requested IP address.
44:  */
45: class Insights extends City
46: {
47: }
48: 
GeoIP2 PHP API v2.9.0 API documentation generated by ApiGen