Overview

Namespaces

  • GeoIP2
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Classes

  • AbstractPlaceRecord
  • AbstractRecord
  • City
  • Continent
  • Country
  • Location
  • MaxMind
  • Postal
  • RepresentedCountry
  • Subdivision
  • Traits
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Traits

Contains data for the traits record associated with an IP address

This record is returned by all the end points.

GeoIP2\Record\AbstractRecord
Extended by GeoIP2\Record\Traits
Namespace: GeoIP2\Record
Located at GeoIP2/Record/Traits.php
Magic properties summary
public integer $autonomousSystemNumber
#

The autonomous system number associated with the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

The autonomous system number associated with the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

public string $autonomousSystemOrganization
#

The organization associated with the registered autonomous system number for the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

The organization associated with the registered autonomous system number for the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

public string $domain
#

The second level domain associated with the IP address. This will be something like "example.com" or "example.co.uk", not "foo.example.com". This attribute is only available from the City/ISP/Org and Omni end points.

The second level domain associated with the IP address. This will be something like "example.com" or "example.co.uk", not "foo.example.com". This attribute is only available from the City/ISP/Org and Omni end points.

public string $ipAddress
#

The IP address that the data in the model is for. If you performed a "me" lookup against the web service, this will be the externally routable IP address for the system the code is running on. If the system is behind a NAT, this may differ from the IP address locally assigned to it. This attribute is returned by all end points.

The IP address that the data in the model is for. If you performed a "me" lookup against the web service, this will be the externally routable IP address for the system the code is running on. If the system is behind a NAT, this may differ from the IP address locally assigned to it. This attribute is returned by all end points.

public boolean $isAnonymousProxy
#

This is true if the IP is an anonymous proxy. See http://dev.maxmind.com/faq/geoip#anonproxy for further details. This attribute is returned by all end points.

This is true if the IP is an anonymous proxy. See http://dev.maxmind.com/faq/geoip#anonproxy for further details. This attribute is returned by all end points.

public boolean $isSatelliteProvider
#

This is true if the IP belongs to a satellite Internet provider. This attribute is returned by all end points.

This is true if the IP belongs to a satellite Internet provider. This attribute is returned by all end points.

public string $isp
#

The name of the ISP associated the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

The name of the ISP associated the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

public string $organization
#

The name of the organization associated the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

The name of the organization associated the IP address. This attribute is only available from the City/ISP/Org and Omni end points.

public string $userType
#

The user type associated with the IP address. This can be one of the following values:

  • business
  • cafe
  • cellular
  • college
  • content_delivery_network
  • dialup
  • government
  • hosting
  • library
  • military
  • residential
  • router
  • school
  • search_engine_spider
  • traveler

This attribute is only available from the Omni end point.

The user type associated with the IP address. This can be one of the following values:

  • business
  • cafe
  • cellular
  • college
  • content_delivery_network
  • dialup
  • government
  • hosting
  • library
  • military
  • residential
  • router
  • school
  • search_engine_spider
  • traveler

This attribute is only available from the Omni end point.

GeoIP2 PHP API v0.1.1 API documentation generated by ApiGen 2.8.0