You are here

class City in Smart IP 6.2

Same name in this branch
  1. 6.2 includes/vendor/geoip2/geoip2/src/Model/City.php \GeoIp2\Model\City
  2. 6.2 includes/vendor/geoip2/geoip2/src/Record/City.php \GeoIp2\Record\City
Same name and namespace in other branches
  1. 7.2 includes/vendor/geoip2/geoip2/src/Record/City.php \GeoIp2\Record\City

City-level data associated with an IP address.

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

@property int|null $confidence A value from 0-100 indicating MaxMind's confidence that the city is correct. This attribute is only available from the Insights service and the GeoIP2 Enterprise database.

@property int|null $geonameId The GeoName ID for the city. This attribute is returned by all location services and databases.

@property string|null $name The name of the city based on the locales list passed to the constructor. This attribute is returned by all location services and databases.

@property array|null $names A array map where the keys are locale codes and the values are names. This attribute is returned by all location services and databases.

Hierarchy

Expanded class hierarchy of City

5 string references to 'City'
Client::city in includes/vendor/geoip2/geoip2/src/WebService/Client.php
This method calls the GeoIP2 Precision: City service.
Reader::city in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 City model.
smart_ip_admin_settings in includes/smart_ip.admin.inc
Smart IP administration settings.
smart_ip_get_bin_source_filename in ./smart_ip.module
Helper function for grabbing MaxMind GeoIP Legacy's binary archive filename.
smart_ip_views_bridge_views_data in modules/smart_ip_views_bridge/views/smart_ip_views_bridge.views.inc
Implements hook_views_data().

File

includes/vendor/geoip2/geoip2/src/Record/City.php, line 26

Namespace

GeoIp2\Record
View source
class City extends AbstractPlaceRecord {

  /**
   * @ignore
   */
  protected $validAttributes = array(
    'confidence',
    'geonameId',
    'names',
  );

}

Members