@@ -22,14 +22,16 @@ to your `composer.json` file:
22
22
23
23
Register the bundle in ` app/AppKernel.php ` :
24
24
25
- // app/AppKernel.php
26
- public function registerBundles()
27
- {
28
- return array(
29
- // ...
30
- new Bazinga\Bundle\GeocoderBundle\BazingaGeocoderBundle(),
31
- );
32
- }
25
+ ``` php
26
+ // app/AppKernel.php
27
+ public function registerBundles()
28
+ {
29
+ return array(
30
+ // ...
31
+ new Bazinga\Bundle\GeocoderBundle\BazingaGeocoderBundle(),
32
+ );
33
+ }
34
+ ```
33
35
34
36
Enable the bundle's configuration in ` app/config/config.yml ` :
35
37
@@ -73,7 +75,7 @@ information in your development environment, for instance:
73
75
// Retrieve information from the current user (by its IP address)
74
76
$result = $this->container
75
77
->get('bazinga_geocoder.geocoder')
76
- ->using('yahoo ')
78
+ ->using('google_maps ')
77
79
->geocode($request->server->get('REMOTE_ADDR'));
78
80
79
81
// Find the 5 nearest objects (15km) from the current user.
@@ -173,7 +175,7 @@ __Configuration example:__
173
175
174
176
services:
175
177
acme_cache_adapter:
176
- class: "Doctrine\C ommon\C ache\A pcCache"
178
+ class: "Doctrine\\ Common\\ Cache\ \ ApcCache"
177
179
178
180
bazinga_geocoder:
179
181
providers:
@@ -183,8 +185,8 @@ bazinga_geocoder:
183
185
google_maps: ~
184
186
` ` `
185
187
186
- > Tip: If you want to configure the cache adapter,
187
- > we recommend the [liip/doctrine-cache-bundle](https://github.com/liip/LiipDoctrineCacheBundle.git ).
188
+ > ** Tip:** If you want to configure the cache adapter,
189
+ > we recommend the [liip/doctrine-cache-bundle](https://github.com/liip/LiipDoctrineCacheBundle).
188
190
189
191
190
192
# ## Symfony2 Profiler Integration
@@ -226,9 +228,6 @@ bazinga_geocoder:
226
228
lifetime: 86400
227
229
ip_info_db:
228
230
api_key: ~ # Required
229
- yahoo:
230
- api_key: ~ # Required
231
- locale: ~
232
231
cloudmade:
233
232
api_key: ~ # Required
234
233
google_maps:
@@ -240,7 +239,7 @@ bazinga_geocoder:
240
239
api_key: ~
241
240
region: ~
242
241
use_ssl: false
243
- openstreetmaps :
242
+ openstreetmap :
244
243
locale: ~
245
244
host_ip: []
246
245
geoip: []
0 commit comments