\GeoIp2\RecordTraits

Contains data for the traits record associated with an IP address.

This record is returned by all location services and databases.

Summary

Methods
Properties
Constants
__isset()
jsonSerialize()
__construct()
$autonomousSystemNumber
$autonomousSystemOrganization
$connectionType
$domain
$ipAddress
$isAnonymous
$isAnonymousProxy
$isAnonymousVpn
$isHostingProvider
$isLegitimateProxy
$isPublicProxy
$isResidentialProxy
$isSatelliteProvider
$isTorExitNode
$isp
$network
$organization
$staticIpScore
$userCount
$userType
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$autonomousSystemNumber

$autonomousSystemNumber : int|null

The autonomous system number associated with the IP address. See https://en.wikipedia.org/wiki/Autonomous_system_(Internet%29. This attribute is only available from the City and Insights web service and the GeoIP2 Enterprise database.

Type

int|null

$autonomousSystemOrganization

$autonomousSystemOrganization : string|null

The organization associated with the registered autonomous system number for the IP address. See https://en.wikipedia.org/wiki/Autonomous_system_(Internet%29. This attribute is only available from the City and Insights web service and the GeoIP2 Enterprise database.

Type

string|null

$connectionType

$connectionType : string|null

The connection type may take the following values: "Dialup", "Cable/DSL", "Corporate", "Cellular". Additional values may be added in the future. This attribute is only available in the GeoIP2 Enterprise database.

Type

string|null

$domain

$domain : string|null

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 and Insights web service and the GeoIP2 Enterprise database.

Type

string|null

$ipAddress

$ipAddress : string

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.

Type

string

$isAnonymous

$isAnonymous : bool

This is true if the IP address belongs to any sort of anonymous network. This property is only available from GeoIP2 Precision Insights.

Type

bool

$isAnonymousProxy

$isAnonymousProxy : bool

Deprecated. Please see our GeoIP2 Anonymous IP database (https://www.maxmind.com/en/geoip2-anonymous-ip-database) to determine whether the IP address is used by an anonymizing service.

Type

bool

$isAnonymousVpn

$isAnonymousVpn : bool

This is true if the IP address is registered to an anonymous VPN provider. If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using the isHostingProvider property. This property is only available from GeoIP2 Precision Insights.

Type

bool

$isHostingProvider

$isHostingProvider : bool

This is true if the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn property). This property is only available from GeoIP2 Precision Insights.

Type

bool

$isLegitimateProxy

$isLegitimateProxy : bool

This attribute is true if MaxMind believes this IP address to be a legitimate proxy, such as an internal VPN used by a corporation. This attribute is only available in the GeoIP2 Enterprise database.

Type

bool

$isPublicProxy

$isPublicProxy : bool

This is true if the IP address belongs to a public proxy. This property is only available from GeoIP2 Precision Insights.

Type

bool

$isResidentialProxy

$isResidentialProxy : bool

This is true if the IP address is on a suspected anonymizing network and belongs to a residential ISP. This property is only available from GeoIP2 Precision Insights.

Type

bool

$isSatelliteProvider

$isSatelliteProvider : bool

Deprecated. Due to the increased coverage by mobile carriers, very few satellite providers now serve multiple countries. As a result, the output does not provide sufficiently relevant data for us to maintain it.

Type

bool

$isTorExitNode

$isTorExitNode : bool

This is true if the IP address is a Tor exit node. This property is only available from GeoIP2 Precision Insights.

Type

bool

$isp

$isp : string|null

The name of the ISP associated with the IP address. This attribute is only available from the City and Insights web services and the GeoIP2 Enterprise database.

Type

string|null

$network

$network : string

The network in CIDR notation associated with the record. In particular, this is the largest network where all of the fields besides $ipAddress have the same value.

Type

string

$organization

$organization : string|null

The name of the organization associated with the IP address. This attribute is only available from the City and Insights web services and the GeoIP2 Enterprise database.

Type

string|null

$staticIpScore

$staticIpScore : float|null

An indicator of how static or dynamic an IP address is. This property is only available from GeoIP2 Precision Insights.

Type

float|null

$userCount

$userCount : int|null

The estimated number of users sharing the IP/network during the past 24 hours. For IPv4, the count is for the individual IP. For IPv6, the count is for the /64 network. This property is only available from GeoIP2 Precision Insights.

Type

int|null

$userType

$userType : string|null

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 Insights web service and the GeoIP2 Enterprise database.

Type

string|null

Methods

__isset()

__isset(string  $attr) : bool

Parameters

string $attr

Returns

bool —

jsonSerialize()

jsonSerialize() : ?array

Returns

?array —

__construct()

__construct(?array  $record) : mixed

Parameters

?array $record

Returns

mixed —