PHP Class Sulu\Bundle\LocationBundle\Geolocator\Service\GoogleGeolocator

https://developers.google.com/maps/documentation/geocoding
Inheritance: implements Sulu\Bundle\LocationBundle\Geolocator\GeolocatorInterface
Show file Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$apiKey
$client

Public Methods

Method Description
__construct ( Guzzle\Http\ClientInterface $client, string $apiKey )
locate ( $query )

Method Details

__construct() public method

public __construct ( Guzzle\Http\ClientInterface $client, string $apiKey )
$client Guzzle\Http\ClientInterface Guzzle HTTP client
$apiKey string API key (can be empty string)

locate() public method

public locate ( $query )

Property Details

$apiKey protected property

protected $apiKey

$client protected property

protected $client