egeloen / IvoryGoogleMapBundle

Google Map API v3 integration for your Symfony2 project.
https://github.com/egeloen/ivory-google-map
MIT License
217 stars 152 forks source link

Parameters of the geocoder service not working as espected #127

Closed elernonelma closed 8 years ago

elernonelma commented 9 years ago

Hi, as followed in the documentation, I tried to set an api_key to the geocoder service. Api_key parameter value is then stored into the locale attribute. Their is my config:

ivory_google_map:
    geocoder:
        provider:
            api_key: "mykey"

Dumping the object :

object(Ivory\GoogleMap\Services\Geocoding\Geocoder)[6433]
  private 'providers' (Geocoder\Geocoder) => 
    array (size=0)
      empty
  private 'provider' (Geocoder\Geocoder) => 
    object(Ivory\GoogleMap\Services\Geocoding\GeocoderProvider)[6432]
      protected 'url' => string 'http://maps.googleapis.com/maps/api/geocode' (length=43)
      protected 'https' => boolean false
      protected 'format' => string 'json' (length=4)
      protected 'xmlParser' => 
        object(Ivory\GoogleMap\Services\Utils\XmlParser)[6434]
      protected 'businessAccount' => null
      protected 'adapter' => 
        object(Geocoder\HttpAdapter\CurlHttpAdapter)[6435]
          private 'timeout' => null
          private 'connectTimeout' => null
          private 'userAgent' => null
          private 'options' => 
            array (size=0)
              ...
      protected 'locale' => string 'mykey' (length=5)
      protected 'maxResults' => int 5
  private 'resultFactory' (Geocoder\Geocoder) => 
    object(Geocoder\Result\DefaultResultFactory)[6437]
  private 'maxResults' (Geocoder\Geocoder) => int 5
egeloen commented 9 years ago

You're right, there is definitively something broken... I will investigate.

egeloen commented 8 years ago

Your issue has been fixed in #159 but will only be part of the 3.x version of the bundle.