PHP Class Geocoder\Provider\GeoIP2

Author: Jens Wiese ([email protected])
Inheritance: extends Geocoder\Provider\AbstractProvider, implements Geocoder\Provider\LocaleAwareProvider, use trait Geocoder\Provider\LocaleTrait
Exibir arquivo Open project: willdurand/geocoder Class Usage Examples

Public Methods

Method Description
__construct ( Geocoder\Adapter\GeoIP2Adapter $adapter, $locale = 'en' )
geocode ( $address ) {@inheritDoc}
getName ( ) {@inheritDoc}
reverse ( $latitude, $longitude ) {@inheritDoc}

Private Methods

Method Description
executeQuery ( string $address )

Method Details

__construct() public method

public __construct ( Geocoder\Adapter\GeoIP2Adapter $adapter, $locale = 'en' )
$adapter Geocoder\Adapter\GeoIP2Adapter

geocode() public method

{@inheritDoc}
public geocode ( $address )

getName() public method

{@inheritDoc}
public getName ( )

reverse() public method

{@inheritDoc}
public reverse ( $latitude, $longitude )