PHP Class Geocoder\Provider\IpInfoDb

Author: William Durand ([email protected])
Inheritance: extends AbstractHttpProvider, implements Geocoder\Provider\Provider
Show file Open project: willdurand/geocoder Class Usage Examples

Public Methods

Method Description
__construct ( Http\Client\HttpClient $client, string $apiKey, string $precision = 'city' )
geocode ( $address ) {@inheritDoc}
getName ( ) {@inheritDoc}
reverse ( $latitude, $longitude ) {@inheritDoc}

Private Methods

Method Description
executeQuery ( string $query ) : Geocoder\Model\AddressCollection

Method Details

__construct() public method

public __construct ( Http\Client\HttpClient $client, string $apiKey, string $precision = 'city' )
$client Http\Client\HttpClient An HTTP adapter.
$apiKey string An API key.
$precision string The endpoint precision. Either "city" or "country" (faster)

geocode() public method

{@inheritDoc}
public geocode ( $address )

getName() public method

{@inheritDoc}
public getName ( )

reverse() public method

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