title: BazingaGeocoderBundle, Google Maps Geocoding API, url is not working from geocoder, but works directly in browser
body: <p>I want to use BazingaGeocoderBundle to retrieve long and lat from postal code
   <a href="https://github.com/geocoder-php/BazingaGeocoderBundle/blob/master/README.md" rel="nofollow">https://github.com/geocoder-php/BazingaGeocoderBundle/blob/master/README.md</a></p>
  
  <p>It was working when i used it without API_KEY, but of course soon stopped complaining about over-quota.  </p>
  
  <p>1) When i registered to “Google Maps Geocoding API”, and added API_KEY to :
  C:\Bitnami\wampstack-5.5.30-0\sym_prog\proj2_27\vendor\willdurand\geocoder\src\Geocoder\Provider\GoogleMapsProvider.php</p>
  
  <pre><code>const ENDPOINT_URL_SSL = 'https://maps.googleapis.com/maps/api/geocode/json?address=%s&amp;key=key';
  const ENDPOINT_URL = 'https://maps.googleapis.com/maps/api/geocode/json?address=%s&amp;key='; // just in case there is something wrong with private $useSsl = true; setting
  </code></pre>
  
  <p>If i try url from my browser - i am getting result with all coordinates:</p>
  
  <p>If i try to use <code>bazinga.geocoder</code>, which was working perfectly previously (Of course if i try to use it without a key, i am getting over-quota error now).:</p>
  
  <pre><code> $addArr = $this-&gt;container
                  -&gt;get('bazinga_geocoder.geocoder')
                  -&gt;using('google_maps')
                  -&gt;geocode($addrArr[$random_addr_index]);
  </code></pre>
  
  <p>i am getting the error now: </p>
  
  <pre><code> [Geocoder\Exception\NoResultException]
   Could not execute query http://maps.googleapis.com/maps/api/geocode/json?ad
   dress=E16%201BH&amp;key=AIzaSyB01WnF2o3M3GzUqn5UWZ_dVffssRrVXaQ
  </code></pre>
  
  <p>If i copy url to the browser - it lists result. </p>
  
  <p>According documentation, Geocoder ships with the egeloen/http-adapter library by default: <a href="https://github.com/geocoder-php/Geocoder#http-adapters" rel="nofollow">https://github.com/geocoder-php/Geocoder#http-adapters</a> .</p>
  
  <p>2)
  If i configure adapter in config and services,
  i am getting error:  <code>Invalid type for path "</code>bazinga_geocoder.adapter<code>". Expected array, but got string</code> .</p>
  
  <p>C:\Bitnami\wampstack-5.5.30-0\sym_prog\proj2_27\app\config\config.yml</p>
  
  <pre><code>bazinga_geocoder:     
      providers:
          google_maps: ~
      adapter: geocoder_adapter
  </code></pre>
  
  <p>C:\Bitnami\wampstack-5.5.30-0\sym_prog\proj2_27\app\config\services.yml</p>
  
  <pre><code>services:
      geocoder_adapter:
          class: Geocoder\HttpAdapter\CurlHttpAdapter
          public: false
  </code></pre>
  
  <p>Where is my mistake? Does adapter here matters? What else i have to change in vendor\willdurand\geocoder\src\Geocoder\Provider\GoogleMapsProvider.php ?</p>
  
  <p>3) How to configure an use correctly other suggested adapters?</p>
  
  <pre><code>* `BuzzHttpAdapter` to use [Buzz](https://github.com/kriswallsmith/Buzz), a lightweight PHP 5.3 library for issuing HTTP requests;
  * `GuzzleHttpAdapter` to use [Guzzle](https://github.com/guzzle/guzzle), PHP 5.3+ HTTP client and framework for building RESTful web service clients;
  * `SocketHttpAdapter` to use a [socket](http://www.php.net/manual/function.fsockopen.php);
  * `ZendHttpAdapter` to use [Zend Http Client](http://framework.zend.com/manual/2.0/en/modules/zend.http.client.html).
  </code></pre>