@@ -317,6 +317,27 @@ try {
317
317
318
318
Everything is ok, enjoy!
319
319
320
+ ### TimedGeocoder
321
+
322
+ We introduced a new feature as of Geocoder v3.0.0. The ` TimedGeocoder ` class
323
+ profiles each ` geocode ` and ` reverse ` call. So you can easily figure out how
324
+ many time/memory was spent for each geocoder/reverse call.
325
+
326
+ ``` php
327
+ // configure you geocoder object
328
+
329
+ $stopwatch = new \Symfony\Component\Stopwatch\Stopwatch();
330
+ $geocoder = new \Geocoder\TimedGeocoder($geocoder, $stopwatch);
331
+
332
+ $geocoder->geocode('Paris, France');
333
+
334
+ // Now you can debug your application
335
+ ```
336
+
337
+ We use the [ symfony/stopwatch] ( http://symfony.com/doc/current/components/stopwatch.html )
338
+ component under the hood. Which means, if you use the Symfony framework the
339
+ geocoder calls will appear in your timeline section in the Web Profiler.
340
+
320
341
321
342
Dumpers
322
343
-------
@@ -436,28 +457,6 @@ You can write your own `provider` by implementing the `Provider` interface.
436
457
437
458
You can provide your own ` dumper ` by implementing the ` Dumper ` interface.
438
459
439
- TimedGeocoder
440
- -------------
441
-
442
- We introduced a new feature in Geocoder 3. The ` TimedGeocoder ` profiles
443
- each ` geocode ` and ` reverse ` call. So you can easily figure out how many
444
- time/memory was spent for each geocoder/reverse call.
445
-
446
- ``` php
447
- // configure you geocoder object
448
-
449
- $stopwatch = new \Symfony\Component\Stopwatch\Stopwatch();
450
- $geocoder = new \Geocoder\TimedGeocoder($geocoder, $stopwatch);
451
-
452
- $geocoder->geocode('Paris, France');
453
-
454
- // Now you can debug your application
455
- ```
456
-
457
- We use the [ symfony/stopwatch] ( http://symfony.com/doc/current/components/stopwatch.html )
458
- component under the hood. Which means, if you use the symfony framework the
459
- geocoder calls will appear in your timeline section in the webprofiler.
460
-
461
460
462
461
Versioning
463
462
----------
0 commit comments