Skip to content

0.3.0

Compare
Choose a tag to compare
@toin0u toin0u released this 12 May 22:42
· 286 commits to master since this release

Release

  • Supports provider's arguments [BC break]

Upgrade

Only app/config/packages/toin0u/geocoder-laravel/config.php stucture is changed. And it's easy to upgrade your config file.

Before:
return array(
    'provider' => 'Geocoder\Provider\GoogleMapsProvider',
    'adapter'  => 'Geocoder\HttpAdapter\CurlHttpAdapter'
);
Now:
return array(
    'providers' => array(
        'Geocoder\Provider\GoogleMapsProvider' => array('my-locale', 'my-region', $ssl = true),
        'Geocoder\Provider\CloudMadeProvider'  => array('my-api-key'),
        'Geocoder\Provider\FreeGeoIpProvider'  => null, // or array()
        // ...
    ),
    'adapter'  => 'Geocoder\HttpAdapter\CurlHttpAdapter'
);