\GeoIp2\RecordSubdivision

Contains data for the subdivisions associated with an IP address.

This record is returned by all location databases and services besides Country.

Summary

Methods
Properties
Constants
__isset()
jsonSerialize()
$confidence
$geonameId
$isoCode
$name
$names
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$confidence

$confidence : int|null

This is a value from 0-100 indicating MaxMind's confidence that the subdivision is correct. This attribute is only available from the Insights service and the GeoIP2 Enterprise database.

Type

int|null

$geonameId

$geonameId : int|null

This is a GeoName ID for the subdivision. This attribute is returned by all location databases and services besides Country.

Type

int|null

$isoCode

$isoCode : string|null

This is a string up to three characters long contain the subdivision portion of the ISO 3166-2 code. See https://en.wikipedia.org/wiki/ISO_3166-2. This attribute is returned by all location databases and services except Country.

Type

string|null

$name

$name : string|null

The name of the subdivision based on the locales list passed to the constructor. This attribute is returned by all location databases and services besides Country.

Type

string|null

$names

$names : array|null

An array map where the keys are locale codes and the values are names. This attribute is returned by all location databases and services besides Country.

Type

array|null

Methods

__isset()

__isset(string  $attr) : bool

Parameters

string $attr

Returns

bool —

jsonSerialize()

jsonSerialize() : ?array

Returns

?array —