\Quark\UtilsGeocoder

Geocoder class.

Summary

Methods
Properties
Constants
__construct()
getGeocode()
getLocale()
getCountry()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
geocode()
$ip
$geocoder
$geocode
N/A

Properties

$ip

$ip : string

Type

string — IP address.

$geocoder

$geocoder : \Geocoder\ProviderAggregator

Type

\Geocoder\ProviderAggregator — Geocoder.

$geocode

$geocode : \Geocoder\Model\AddressCollection

Type

\Geocoder\Model\AddressCollection — Geocode.

Methods

__construct()

__construct(string  $ip) 

Creates an instance of Geocoder.

Parameters

string $ip

IP address.

getGeocode()

getGeocode() : \Geocoder\Model\AddressCollection

Get geocode.

Returns

\Geocoder\Model\AddressCollection

getLocale()

getLocale() : string

Get locale.

Returns

string —

Locale.

getCountry()

getCountry() : string

Get country.

Returns

string —

Country.

geocode()

geocode() 

Geocode an IP address.

Throws

\Geocoder\Exception\Exception