Geocoder\Provider\MaxMind::fieldsForService PHP Method

fieldsForService() private method

We do not support Country and City services because they do not return much fields.
See also: http://dev.maxmind.com/geoip/web-services
private fieldsForService ( string $service ) : string[]
$service string
return string[]
    private function fieldsForService($service)
    {
        switch ($service) {
            case self::CITY_EXTENDED_SERVICE:
                return array('countryCode', 'regionCode', 'locality', 'postalCode', 'latitude', 'longitude', 'metroCode', 'areaCode', 'isp', 'organization');
            case self::OMNI_SERVICE:
                return array('countryCode', 'countryName', 'regionCode', 'region', 'locality', 'latitude', 'longitude', 'metroCode', 'areaCode', 'timezone', 'continentCode', 'postalCode', 'isp', 'organization', 'domain', 'asNumber', 'netspeed', 'userType', 'accuracyRadius', 'countryConfidence', 'cityConfidence', 'regionConfidence', 'postalConfidence', 'error');
            default:
                throw new UnsupportedOperation(sprintf('Unknown MaxMind service %s', $service));
        }
    }