\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
$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 : integer|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

integer|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 : boolean

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

Type

boolean

$isAnonymousVpn

$isAnonymousVpn : boolean

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

boolean

$isHostingProvider

$isHostingProvider : boolean

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

boolean

$isLegitimateProxy

$isLegitimateProxy : boolean

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

boolean

$isPublicProxy

$isPublicProxy : boolean

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

Type

boolean

$isSatelliteProvider

$isSatelliteProvider : boolean

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

boolean

$isTorExitNode

$isTorExitNode : boolean

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

Type

boolean

$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 : integer|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

integer|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(  $attr) 

Parameters

$attr

jsonSerialize()

jsonSerialize() 

__construct()

__construct(  $record) 

Parameters

$record