https://developers.google.com/maps/documentation/geocoding
Inheritance: implements Sulu\Bundle\LocationBundle\Geolocator\GeolocatorInterface
Example #1
0
 public function testApiKey()
 {
     $this->mockPlugin->addResponse(new Response(200, null, '{"status": "OK","results":[]}'));
     $geolocator = new GoogleGeolocator($this->client, 'foobar');
     $geolocator->locate('foobar');
     $logs = $this->logAdapter->getLogs();
     $this->assertCount(1, $logs);
     $log = current($logs);
     $this->assertContains('key=foobar', $log['message']);
 }